got rid of /opt/extras sillyness in ubuntu packaging

This commit is contained in:
Daniel Pavel 2013-07-12 17:02:17 +02:00
parent d78c7ed9be
commit 46c0448854
10 changed files with 20 additions and 25 deletions

View File

@ -95,11 +95,20 @@ cd "$BUILD_DIR"
if test "$DEBCHANGE_VENDOR" = debian; then
# if this is the main (Debian) build, update the source changelog
/bin/cp --archive --no-target-directory debian/changelog "$DEBIAN_FILES"/changelog
else
elif test -d "$DEBIAN_FILES_VENDOR"; then
# else copy any additional files
/bin/cp --archive --target-directory=debian/ "$DEBIAN_FILES_VENDOR"/* || true
fi
# install vendor-specific substvars files, if any
/usr/bin/find debian/ -type f -name "substvars.*.$DEBCHANGE_VENDOR" |\
while read subst_source; do
subst_target="${subst_source%.$DEBCHANGE_VENDOR}"
/bin/mv --force "$subst_source" "$subst_target"
done
# remove the templates, they are not relevant to the debian source package
/bin/rm --force debian/substvars.*.*
/usr/bin/debuild \
--lintian --tgz-check \
--preserve-envvar=DISPLAY \

View File

@ -15,7 +15,7 @@ Package: solaar
Architecture: all
Depends: ${misc:Depends}, ${debconf:Depends}, udev (>= 175), passwd | adduser,
${python:Depends}, python-pyudev (>= 0.13), python-gi (>= 3.2), gir1.2-gtk-3.0 (>= 3.4),
${DesktopIconTheme}
${Desktop-Icon-Theme}
Recommends: gir1.2-notify-0.7, consolekit (>= 0.4.3) | systemd (>= 44),
python-dbus (>= 1.1.0), upower
Suggests: gir1.2-appindicator3-0.1, solaar-gnome3 (= ${source:Version})
@ -29,7 +29,7 @@ Architecture: all
Section: gnome
Depends: ${misc:Depends}, solaar (= ${source:Version}),
gir1.2-appindicator3-0.1, gnome-shell (>= 3.4) | unity (>= 5.10),
${GnomeIconTheme}
${Gnome-Icon-Theme}
Enhances: solaar
Description: gnome-shell/Unity integration for Solaar
Solaar is a Linux device manager for Logitech's Unifying Receiver peripherals.

View File

@ -19,4 +19,4 @@ override_dh_python2:
dh_python2 $(PREFIX)/share/solaar
override_dh_gencontrol:
dh_gencontrol -- -Tdebian/substvars.extra
dh_gencontrol -- -Tdebian/substvars.theme

View File

@ -1,2 +0,0 @@
DesktopIconTheme=gnome-icon-theme | oxygen-icon-theme
GnomeIconTheme=gnome-icon-theme

View File

@ -0,0 +1,5 @@
# distro package containing some required icons
Desktop-Icon-Theme=gnome-icon-theme | oxygen-icon-theme
# dependency for solaar-gnome3 (gnome-shell/unity specific)
Gnome-Icon-Theme=gnome-icon-theme

View File

@ -0,0 +1,2 @@
Desktop-Icon-Theme=gnome-icon-theme-full | oxygen-icon-theme-complete
Gnome-Icon-Theme=gnome-icon-theme-full

View File

@ -1,12 +0,0 @@
# this file is included by debian/rules
PREFIX = /opt/extras.ubuntu.com/solaar
# hacky...
override_dh_link:
dh_link
# replace the Exec and Icon targets with the proper full paths
sed -i -e 's#Exec=solaar#Exec=/opt/extras.ubuntu.com/solaar/bin/solaar#' \
debian/solaar/opt/extras.ubuntu.com/solaar/share/applications/solaar.desktop
sed -i -e 's#Icon=solaar#Icon=/opt/extras.ubuntu.com/solaar/share/pixmaps/solaar.png#' \
debian/solaar/opt/extras.ubuntu.com/solaar/share/applications/solaar.desktop

View File

@ -1,4 +0,0 @@
opt/extras.ubuntu.com/solaar/bin/
opt/extras.ubuntu.com/solaar/share/solaar/
opt/extras.ubuntu.com/solaar/share/applications/
opt/extras.ubuntu.com/solaar/share/pixmaps/

View File

@ -1 +0,0 @@
opt/extras.ubuntu.com/solaar/share/applications/solaar.desktop usr/share/applications/extras-solaar.desktop

View File

@ -1,2 +0,0 @@
DesktopIconTheme=gnome-icon-theme-full | oxygen-icon-theme-complete
GnomeIconTheme=gnome-icon-theme-full