DEB: Add multi-arch support to tqca-tls.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/8/head
Michele Calgaro 6 years ago
parent ee4cec71cd
commit cf7518355a
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -8,6 +8,7 @@ Standards-Version: 3.8.4
Package: tqca-tls Package: tqca-tls
Section: libs Section: libs
Architecture: any Architecture: any
Multi-Arch: same
Replaces: tqca-tls (<< 4:14.0.0~) Replaces: tqca-tls (<< 4:14.0.0~)
Breaks: tqca-tls (<< 4:14.0.0~) Breaks: tqca-tls (<< 4:14.0.0~)
Depends: ${shlibs:Depends}, ${misc:Depends} Depends: ${shlibs:Depends}, ${misc:Depends}

@ -14,6 +14,7 @@ DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
# from having to guess our platform (since we know it already) # from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
CFLAGS = -Wall -g CFLAGS = -Wall -g
@ -69,9 +70,15 @@ install: build
dh_clean -k dh_clean -k
dh_installdirs dh_installdirs
# update multi-arch path in install files
for a in debian/*install; do \
[ -d $$a ] || [ -f $$a.arch ] || \
sed -i.arch "s|\$$(DEB_HOST_MULTIARCH)|$(DEB_HOST_MULTIARCH)|g" $$a; \
done
# Add here commands to install the package into debian/tmp # Add here commands to install the package into debian/tmp
$(MAKE) install INSTALL_ROOT=$(CURDIR)/debian/tmp/ $(MAKE) install INSTALL_ROOT=$(CURDIR)/debian/tmp/
[ -e $(CURDIR)/debian/tmp/usr/lib/tqt3/plugins/crypto/libtqca-tls.so ] || ( echo "libtqca-tls.so not in usr/lib/tqt3/plugins/crypto/libtqca-tls.so" && exit 1 ) [ -e $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/tqt3/plugins/crypto/libtqca-tls.so ] || ( echo "libtqca-tls.so not in usr/lib/$(DEB_HOST_MULTIARCH)/tqt3/plugins/crypto/libtqca-tls.so" && exit 1 )
# Build architecture-independent files here. # Build architecture-independent files here.

@ -1 +1 @@
usr/lib/tqt3/plugins/crypto/* usr/lib/$(DEB_HOST_MULTIARCH)/tqt3/plugins/crypto/*

@ -8,6 +8,7 @@ Standards-Version: 3.8.4
Package: tqca-tls Package: tqca-tls
Section: libs Section: libs
Architecture: any Architecture: any
Multi-Arch: same
Replaces: tqca-tls (<< 4:14.0.0~) Replaces: tqca-tls (<< 4:14.0.0~)
Breaks: tqca-tls (<< 4:14.0.0~) Breaks: tqca-tls (<< 4:14.0.0~)
Depends: ${shlibs:Depends}, ${misc:Depends} Depends: ${shlibs:Depends}, ${misc:Depends}

@ -14,6 +14,7 @@ DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
# from having to guess our platform (since we know it already) # from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
CFLAGS = -Wall -g CFLAGS = -Wall -g
@ -69,9 +70,15 @@ install: build
dh_clean -k dh_clean -k
dh_installdirs dh_installdirs
# update multi-arch path in install files
for a in debian/*install; do \
[ -d $$a ] || [ -f $$a.arch ] || \
sed -i.arch "s|\$$(DEB_HOST_MULTIARCH)|$(DEB_HOST_MULTIARCH)|g" $$a; \
done
# Add here commands to install the package into debian/tmp # Add here commands to install the package into debian/tmp
$(MAKE) install INSTALL_ROOT=$(CURDIR)/debian/tmp/ $(MAKE) install INSTALL_ROOT=$(CURDIR)/debian/tmp/
[ -e $(CURDIR)/debian/tmp/usr/lib/tqt3/plugins/crypto/libtqca-tls.so ] || ( echo "libtqca-tls.so not in usr/lib/tqt3/plugins/crypto/libtqca-tls.so" && exit 1 ) [ -e $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/tqt3/plugins/crypto/libtqca-tls.so ] || ( echo "libtqca-tls.so not in usr/lib/$(DEB_HOST_MULTIARCH)/tqt3/plugins/crypto/libtqca-tls.so" && exit 1 )
# Build architecture-independent files here. # Build architecture-independent files here.

@ -1 +1 @@
usr/lib/tqt3/plugins/crypto/* usr/lib/$(DEB_HOST_MULTIARCH)/tqt3/plugins/crypto/*

@ -8,6 +8,7 @@ Standards-Version: 3.8.4
Package: tqca-tls Package: tqca-tls
Section: libs Section: libs
Architecture: any Architecture: any
Multi-Arch: same
Replaces: tqca-tls (<< 4:14.0.0~) Replaces: tqca-tls (<< 4:14.0.0~)
Breaks: tqca-tls (<< 4:14.0.0~) Breaks: tqca-tls (<< 4:14.0.0~)
Depends: ${shlibs:Depends}, ${misc:Depends} Depends: ${shlibs:Depends}, ${misc:Depends}

@ -14,6 +14,7 @@ DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
# from having to guess our platform (since we know it already) # from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
CFLAGS = -Wall -g CFLAGS = -Wall -g
@ -69,9 +70,15 @@ install: build
dh_clean -k dh_clean -k
dh_installdirs dh_installdirs
# update multi-arch path in install files
for a in debian/*install; do \
[ -d $$a ] || [ -f $$a.arch ] || \
sed -i.arch "s|\$$(DEB_HOST_MULTIARCH)|$(DEB_HOST_MULTIARCH)|g" $$a; \
done
# Add here commands to install the package into debian/tmp # Add here commands to install the package into debian/tmp
$(MAKE) install INSTALL_ROOT=$(CURDIR)/debian/tmp/ $(MAKE) install INSTALL_ROOT=$(CURDIR)/debian/tmp/
[ -e $(CURDIR)/debian/tmp/usr/lib/tqt3/plugins/crypto/libtqca-tls.so ] || ( echo "libtqca-tls.so not in usr/lib/tqt3/plugins/crypto/libtqca-tls.so" && exit 1 ) [ -e $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/tqt3/plugins/crypto/libtqca-tls.so ] || ( echo "libtqca-tls.so not in usr/lib/$(DEB_HOST_MULTIARCH)/tqt3/plugins/crypto/libtqca-tls.so" && exit 1 )
# Build architecture-independent files here. # Build architecture-independent files here.

@ -1 +1 @@
usr/lib/tqt3/plugins/crypto/* usr/lib/$(DEB_HOST_MULTIARCH)/tqt3/plugins/crypto/*

Loading…
Cancel
Save