X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=fwcutter%2Fdebian%2Frules;fp=fwcutter%2Fdebian%2Frules;h=dfd8ff2c787dc89ae6fd0502c61df385a8daba22;hb=89b880716d26706541c57c290199f66c0741902e;hp=0000000000000000000000000000000000000000;hpb=30e3fca2e44c77faf9782bae2d7490877deddbd7;p=b43-tools.git diff --git a/fwcutter/debian/rules b/fwcutter/debian/rules new file mode 100755 index 0000000..dfd8ff2 --- /dev/null +++ b/fwcutter/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +INSTALL := install -o root -g root -m 755 + +CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) +CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) + +version=$(shell dpkg-parsechangelog | grep urgency | awk '{ print $$2; }'| \ +sed -e s/"("// -e s/")"// | cut -d"-" -f1) + +%: + dh $@ + +override_dh_auto_build: + dh_auto_build -- CFLAGS="$(CFLAGS) $(CPPFLAGS) -std=c99 -fomit-frame-pointer -pedantic -D_BSD_SOURCE \ + -DFWCUTTER_VERSION_=`echo $(version) | cut -d: -f2`" + +override_dh_auto_clean: + rm -f b43-fwcutter + rm -rf $(CURDIR)/debian/b43-fwcutter/usr/man + +override_dh_installchangelogs: + dh_installchangelogs $(CURDIR)/debian/b43-fwcutter.upstream-changelog + +override_dh_auto_install: + $(INSTALL) b43-fwcutter $(CURDIR)/debian/b43-fwcutter/usr/bin