Another fixes for packaging system
authorNikolay Tischenko <niktischenko@gmail.com>
Mon, 28 Feb 2011 17:12:07 +0000 (23:12 +0600)
committerNikolay Tischenko <niktischenko@gmail.com>
Mon, 28 Feb 2011 17:12:07 +0000 (23:12 +0600)
debian/control
debian/postinst [new file with mode: 0644]
debian/postrm [new file with mode: 0644]
someplayer.pro

index f9348dd..8080efb 100644 (file)
@@ -8,7 +8,7 @@ XSBC-Homepage: http://github.com/niktischenko/someplayer
 
 Package: someplayer
 Architecture: armel
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, gstreamer0.10-plugins-good-extra
 Description: Alternate audioplayer for Maemo 5
  Qt4- and Phonon-based player with compiled in TagLib library
  supports mp3, flac, ogg, wma, aac formats
diff --git a/debian/postinst b/debian/postinst
new file mode 100644 (file)
index 0000000..be838df
--- /dev/null
@@ -0,0 +1,43 @@
+#!/bin/sh
+# postinst script for someplayer
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+ln -s /opt/someplayer/bin/someplayer /usr/bin/
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/postrm b/debian/postrm
new file mode 100644 (file)
index 0000000..57368a8
--- /dev/null
@@ -0,0 +1,41 @@
+#!/bin/sh
+# postrm script for someplayer
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+rm -f /usr/bin/someplayer
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
index 315f98f..8527e3a 100644 (file)
@@ -13,7 +13,7 @@ desktop.files = src/resources/someplayer.desktop
 icon.path = /usr/share/icons/hicolor/scalable/hildon
 icon.files = src/resources/someplayer.png
 
-equalizer.path = /etc/skel/.someplayer
+equalizer.path = "/etc/skel/.someplayer"
 equalizer.files = src/resources/equalizer.ini
 
 translations.path = /opt/someplayer