got rid of /opt/extras sillyness in ubuntu packaging
This commit is contained in:
parent
d78c7ed9be
commit
46c0448854
|
@ -95,11 +95,20 @@ cd "$BUILD_DIR"
|
||||||
if test "$DEBCHANGE_VENDOR" = debian; then
|
if test "$DEBCHANGE_VENDOR" = debian; then
|
||||||
# if this is the main (Debian) build, update the source changelog
|
# if this is the main (Debian) build, update the source changelog
|
||||||
/bin/cp --archive --no-target-directory debian/changelog "$DEBIAN_FILES"/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
|
# else copy any additional files
|
||||||
/bin/cp --archive --target-directory=debian/ "$DEBIAN_FILES_VENDOR"/* || true
|
/bin/cp --archive --target-directory=debian/ "$DEBIAN_FILES_VENDOR"/* || true
|
||||||
fi
|
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 \
|
/usr/bin/debuild \
|
||||||
--lintian --tgz-check \
|
--lintian --tgz-check \
|
||||||
--preserve-envvar=DISPLAY \
|
--preserve-envvar=DISPLAY \
|
||||||
|
|
|
@ -15,7 +15,7 @@ Package: solaar
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ${misc:Depends}, ${debconf:Depends}, udev (>= 175), passwd | adduser,
|
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),
|
${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),
|
Recommends: gir1.2-notify-0.7, consolekit (>= 0.4.3) | systemd (>= 44),
|
||||||
python-dbus (>= 1.1.0), upower
|
python-dbus (>= 1.1.0), upower
|
||||||
Suggests: gir1.2-appindicator3-0.1, solaar-gnome3 (= ${source:Version})
|
Suggests: gir1.2-appindicator3-0.1, solaar-gnome3 (= ${source:Version})
|
||||||
|
@ -29,7 +29,7 @@ Architecture: all
|
||||||
Section: gnome
|
Section: gnome
|
||||||
Depends: ${misc:Depends}, solaar (= ${source:Version}),
|
Depends: ${misc:Depends}, solaar (= ${source:Version}),
|
||||||
gir1.2-appindicator3-0.1, gnome-shell (>= 3.4) | unity (>= 5.10),
|
gir1.2-appindicator3-0.1, gnome-shell (>= 3.4) | unity (>= 5.10),
|
||||||
${GnomeIconTheme}
|
${Gnome-Icon-Theme}
|
||||||
Enhances: solaar
|
Enhances: solaar
|
||||||
Description: gnome-shell/Unity integration for Solaar
|
Description: gnome-shell/Unity integration for Solaar
|
||||||
Solaar is a Linux device manager for Logitech's Unifying Receiver peripherals.
|
Solaar is a Linux device manager for Logitech's Unifying Receiver peripherals.
|
||||||
|
|
|
@ -19,4 +19,4 @@ override_dh_python2:
|
||||||
dh_python2 $(PREFIX)/share/solaar
|
dh_python2 $(PREFIX)/share/solaar
|
||||||
|
|
||||||
override_dh_gencontrol:
|
override_dh_gencontrol:
|
||||||
dh_gencontrol -- -Tdebian/substvars.extra
|
dh_gencontrol -- -Tdebian/substvars.theme
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
DesktopIconTheme=gnome-icon-theme | oxygen-icon-theme
|
|
||||||
GnomeIconTheme=gnome-icon-theme
|
|
|
@ -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
|
|
@ -0,0 +1,2 @@
|
||||||
|
Desktop-Icon-Theme=gnome-icon-theme-full | oxygen-icon-theme-complete
|
||||||
|
Gnome-Icon-Theme=gnome-icon-theme-full
|
|
@ -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
|
|
|
@ -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/
|
|
|
@ -1 +0,0 @@
|
||||||
opt/extras.ubuntu.com/solaar/share/applications/solaar.desktop usr/share/applications/extras-solaar.desktop
|
|
|
@ -1,2 +0,0 @@
|
||||||
DesktopIconTheme=gnome-icon-theme-full | oxygen-icon-theme-complete
|
|
||||||
GnomeIconTheme=gnome-icon-theme-full
|
|
Loading…
Reference in New Issue