DEB trinity-apt-archive: Add an option with the determination of architecture.

This will prevent automatic loading of sources for additional architectures,
which may not be available to some distributions.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/221/head
Slávek Banko 1 year ago
parent 3c3bcb969a
commit 083646e079
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -7,7 +7,7 @@ Standards-Version: 3.8.4
Package: trinity-apt-archive
Priority: optional
Architecture: all
Architecture: any
Depends: apt
Pre-Depends: trinity-keyring
Description: APT sources list for the Trinity Desktop Environment repository

@ -1,4 +1,4 @@
# Trinity repositories
deb http://mirror.ppa.trinitydesktop.org/trinity/deb/trinity-r14.1.x <distribution> main deps
deb-src http://mirror.ppa.trinitydesktop.org/trinity/deb/trinity-r14.1.x <distribution> main deps
deb [arch=<arch>] http://mirror.ppa.trinitydesktop.org/trinity/deb/trinity-r14.1.x <distribution> main deps
deb-src [arch=<arch>] http://mirror.ppa.trinitydesktop.org/trinity/deb/trinity-r14.1.x <distribution> main deps

@ -4,6 +4,7 @@ include /usr/share/cdbs/1/rules/debhelper.mk
VERSION := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2)
DISTRIBUTION := $(shell dpkg-parsechangelog | grep ^Distribution: | cut -d' ' -f2)
ARCHITECTURE := $(shell dpkg-architecture -qDEB_HOST_ARCH)
# The default gzip compressor has been changed in dpkg >= 1.17.0.
deb_default_compress = $(shell LANG=C dpkg-deb --version | head -n1 | \
@ -33,4 +34,4 @@ clean::
binary-install/trinity-apt-archive::
dh_testdir
sed -i 's|^\(deb[^ ]* [^ ]*\) [^ ]* main|\1 ${DISTRIBUTION} main|g' debian/$(cdbs_curpkg)/etc/apt/sources.list.d/trinity.list
sed -i -e 's|<distribution>|${DISTRIBUTION}|' -e 's|<arch>|${ARCHITECTURE}|' debian/$(cdbs_curpkg)/etc/apt/sources.list.d/trinity.list

Loading…
Cancel
Save