1
0
Fork 0
lzlib/debian/rules

39 lines
1.2 KiB
Text
Raw Normal View History

#!/usr/bin/make -f
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
dh ${@} --parallel
override_dh_auto_configure:
dh_auto_configure -- --enable-shared --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
override_dh_auto_install:
dh_auto_install -- LDCONFIG=/bin/true
# minilzip
install -D -m 0755 minilzip_shared debian/minilzip/usr/bin/lzip.mini
install -D -m 0644 doc/minilzip.1 debian/minilzip/usr/share/man/man1/lzip.mini.1
ln -s /usr/bin/lzip.mini debian/minilzip/usr/bin/minilzip
ln -s /usr/share/man/man1/lzip.mini.1.gz debian/minilzip/usr/share/man/man1/minilzip.1.gz
# minilzip.static
install -D -m 0755 minilzip debian/minilzip/usr/bin/lzip.mini-static
install -D -m 0644 doc/minilzip.1 debian/minilzip/usr/share/man/man1/lzip.mini-static.1
ln -s /usr/bin/lzip.mini-static debian/minilzip/usr/bin/minilzip.static
ln -s /usr/share/man/man1/lzip.mini-static.1.gz debian/minilzip/usr/share/man/man1/minilzip.static.1.gz
# removing unused files
rm -f debian/tmp/usr/share/info/dir*
override_dh_builddeb:
dh_builddeb -- -Zxz
override_dh_install:
dh_install --fail-missing
override_dh_strip:
dh_strip --dbg-package=liblz-dbg