Skip to content
Permalink
Browse files

Debianize

  • Loading branch information...
corenominal committed Aug 8, 2016
1 parent fd092c2 commit 8d20aba60cfd10c273f961eb00572c692efdad13
Showing with 95 additions and 4 deletions.
  1. +5 −0 debian/changelog
  2. +1 −0 debian/compat
  3. +15 −0 debian/control
  4. +23 −0 debian/copyright
  5. +40 −0 debian/rules
  6. +2 −3 src/faviconator
  7. +8 −0 src/faviconator.desktop
  8. +1 −1 src/faviconator.glade
@@ -0,0 +1,5 @@
faviconator (20160808) xenial; urgency=low

* Initial release.

-- Philip Newborough <corenominal@corenominal.org> Mon, 8 Aug 2016 19:37:56 +0100
@@ -0,0 +1 @@
5
@@ -0,0 +1,15 @@
Source: faviconator
Section: misc
Priority: extra
Maintainer: Philip Newborough <corenominal@corenominal.org>
Build-Depends: debhelper (>= 9.0.0)
Standards-Version: 3.9.7
Homepage: https://corenominal.org/projects/faviconator/

Package: faviconator
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}, python, python-gi, gir1.2-gtk-3.0, gir1.2-pango-1.0, imagemagick
Description: Easy favicon generator
A simple little Python GTK GUI application to help you easily
create favicons from images.
.
@@ -0,0 +1,23 @@
This package was debianized by Philip Newborough <corenominal@corenominal.org>
Thu, 8 Aug 2016 19:37:56 +0100

Copyright:
Packaging copyright © 2016 Philip Newborough <corenominal@corenominal.org>
Scripts copyright © 2016 Philip Newborough <corenominal@corenominal.org>

License:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

Full License:
/usr/share/common-licenses/GPL-3
@@ -0,0 +1,40 @@
#!/usr/bin/make -f

build:

build-arch:

build-indep:

clean:
dh_testdir
dh_testroot
dh_clean

install:
dh_install src/faviconator /usr/bin
dh_install src/faviconator.desktop /usr/share/applications
dh_install src/faviconator.glade /usr/share/faviconator
dh_install src/faviconator.svg /usr/share/pixmaps
dh_install src/faviconator-preview.png /usr/share/faviconator
dh_install src/faviconator-preview-blank.png /usr/share/faviconator
dh_testdir
dh_testroot

binary-arch:

binary-indep: install
dh_testdir
dh_testroot
dh_compress
dh_installchangelogs
dh_installdocs
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb

binary: binary-indep binary-arch

.PHONY: clean install binary-arch binary-indep binary
@@ -11,7 +11,7 @@ from shutil import copyfile
class faviconator:
def __init__(self):
self.home = os.path.expanduser('~')
self.gladefile = "faviconator.glade"
self.gladefile = "/usr/share/faviconator/faviconator.glade"
self.builder = Gtk.Builder()
self.builder.add_from_file(self.gladefile)
self.builder.connect_signals(self)
@@ -28,7 +28,7 @@ class faviconator:
self.button_filechooserdialog_ok = self.builder.get_object("button_filechooserdialog_ok")
self.imagelist = [".png", ".jpg", ".gif", ".jpeg"]
self.faviconator_img = None
self.blank_preview_img = "faviconator-preview-blank.png"
self.blank_preview_img = "/usr/share/faviconator/faviconator-preview-blank.png"
self.img16 = None
self.img32 = None

@@ -68,7 +68,6 @@ class faviconator:
filename, file_extension = os.path.splitext(f)
self.faviconator_img = '/tmp/faviconator_img' + file_extension.lower()
copyfile(f, self.faviconator_img)
# convert to png if not other format
# cp blank preview file
copyfile(self.blank_preview_img, '/tmp/faviconator-preview.png')
# scale images
@@ -0,0 +1,8 @@
[Desktop Entry]
Icon=faviconator
Type=Application
Name=Faviconator
Comment=Easy favicon generator.
Exec=/usr/bin/faviconator
StartupNotify=true
Terminal=false
@@ -164,7 +164,7 @@
<object class="GtkImage" id="imagePreview">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="pixbuf">faviconator-preview.png</property>
<property name="pixbuf">/usr/share/faviconator/faviconator-preview.png</property>
</object>
<packing>
<property name="expand">False</property>

0 comments on commit 8d20aba

Please sign in to comment.
You can’t perform that action at this time.