1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#!/usr/bin/make -f
PACKAGE_VERSION := $(shell \
dpkg-parsechangelog \
| grep ^Version \
| awk '{print $$2}' \
| sed 's/-[[:digit:]]\+$$//' \
)
include /usr/share/cdbs/1/rules/debhelper.mk
tarball:
cd .. && tar \
--exclude=debian \
--exclude=.git \
-czvf frogatto-data_$(PACKAGE_VERSION).orig.tar.gz \
frogatto-data-$(PACKAGE_VERSION)
# Damn cdbs: the following is not working as I fail to see the target
# called after all the installs and before the dh_builddep. That would
# fix a lintian warning however.
#common-binary-indep::
# cd debian/frogatto-data/usr/share/games/frogatto && find -type f -print0 |xargs -0 chmod a-x
|