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 26 27 28 29
|
#!/usr/bin/make -f
# Add here any variable or target overrides you need
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
DEB_CONFIGURE_EXTRA_FLAGS := --without-xsel
#DEB_MAKE_CHECK_TARGET := test
FISH_VERSION = $(shell dpkg-parsechangelog | grep "^Version:" | awk '{print $$2}' | sed 's/-[0-9]\+$$//')
install/fish::
rm -f debian/fish/usr/share/doc/fish/ChangeLog
for f in debian/completions/*; do \
cp $$f debian/fish/usr/share/fish/completions/; \
done
clean::
rm -f xsel-0.9.6.tar.cdbs-config_list
export: clean
-[ -d "build-area/fish-$(FISH_VERSION)" ] && rm -rf build-area/fish-$(FISH_VERSION)
darcs get . build-area/fish-$(FISH_VERSION)
rm -rf build-area/fish-$(FISH_VERSION)/_darcs
cd build-area/fish-$(FISH_VERSION) && chmod +x debian/rules
cp upstream/fish_$(FISH_VERSION).orig.tar.gz build-area/
cd build-area && tar zxf fish_$(FISH_VERSION).orig.tar.gz
cd build-area && dpkg-source -b fish-$(FISH_VERSION)
|