1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#!/usr/bin/make -f
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DEB_UPSTREAM_VERSION ?= $(shell dpkg-parsechangelog | \
sed -rne 's,^Version: ([^-]+).*,\1,p')
%:
dh $@ --with autoreconf
override_dh_auto_configure:
dh_auto_configure -- --bindir=/sbin --libdir=/lib/$(DEB_HOST_MULTIARCH)
override_dh_auto_install:
dh_auto_install -- DESTDIR="$(CURDIR)/debian/f2fs-tools"
override_dh_install:
find $(CURDIR) -name "*.la" -delete
dh_install
override_dh_strip:
dh_strip --dbg-package=f2fs-tools-dbg
get-orig-source:
wget http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/f2fs-tools-$(DEB_UPSTREAM_VERSION).tar.xz
mv f2fs-tools-$(DEB_UPSTREAM_VERSION).tar.xz f2fs-tools_$(DEB_UPSTREAM_VERSION).orig.tar.xz
|