From: Nikolay Tischenko Date: Mon, 28 Feb 2011 17:12:07 +0000 (+0600) Subject: Another fixes for packaging system X-Git-Url: https://vcs.maemo.org/git/?p=someplayer;a=commitdiff_plain;h=907c06f2fae672a05f980bbdf536eb1acc341974 Another fixes for packaging system --- diff --git a/debian/control b/debian/control index f9348dd..8080efb 100644 --- a/debian/control +++ b/debian/control @@ -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 index 0000000..be838df --- /dev/null +++ b/debian/postinst @@ -0,0 +1,43 @@ +#!/bin/sh +# postinst script for someplayer +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# 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 index 0000000..57368a8 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,41 @@ +#!/bin/sh +# postrm script for someplayer +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# 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 + + diff --git a/someplayer.pro b/someplayer.pro index 315f98f..8527e3a 100644 --- a/someplayer.pro +++ b/someplayer.pro @@ -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