Commit f0220b47 authored by Joachim Breitner's avatar Joachim Breitner

haskell-hledger-interest: Actually use haskell-devscripts. Should also fix...

haskell-hledger-interest: Actually use haskell-devscripts. Should also fix this package's reproducibility.
parent 17dc0fd5
haskell-hledger-interest (1.4.4-2) UNRELEASED; urgency=medium
* Actually use haskell-devscripts. Should also fix this package's
reproducibility.
-- Joachim Breitner <nomeata@debian.org> Sun, 07 Jun 2015 15:48:58 +0200
haskell-hledger-interest (1.4.4-1) unstable; urgency=medium
* New upstream release
......
#!/usr/bin/make -f
INSTALL = install
INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755
INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755
package=hledger-interest
clean:
$(checkdir)
rm -f debian/hlibrary.setup stamp-configure build-arch
rm -rf debian/$(package)
build: build-arch build-indep
build-indep:
build-arch: stamp-configure debian/hlibrary.setup
$(checkdir)
debian/hlibrary.setup build
touch build-arch
stamp-configure: debian/hlibrary.setup
$(checkdir)
debian/hlibrary.setup configure --prefix=/usr
touch stamp-configure
binary: binary-arch
binary-indep: checkroot build
binary-arch: checkroot build debian/hlibrary.setup
$(checkdir)
debian/hlibrary.setup copy --destdir=$(CURDIR)/debian/$(package)
rm -rf debian/$(package)/usr/share/doc/$(package)-*
cd debian/$(package) && $(INSTALL_DIR) \
usr/bin \
usr/share/doc/$(package) \
DEBIAN
$(INSTALL_FILE) debian/copyright debian/$(package)/usr/share/doc/$(package)/copyright
$(INSTALL_FILE) debian/changelog debian/$(package)/usr/share/doc/$(package)/changelog.Debian
gzip -9f debian/$(package)/usr/share/doc/$(package)/changelog.Debian
dpkg-shlibdeps -Tdebian/substvars -dDepends debian/$(package)/usr/bin/*
dpkg-gencontrol -ldebian/changelog -isp -p$(package) -Tdebian/substvars -Pdebian/$(package)
cd debian/$(package) && find * -type f ! -regex '^DEBIAN/.*' -print0 | xargs -r0 md5sum > DEBIAN/md5sums
chown -R root:root debian/$(package)
chmod -R go=rX debian/$(package)
dpkg --build debian/$(package) ..
debian/hlibrary.setup:
ghc --make Setup.hs -o $@
define checkdir
test -f debian/rules
endef
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot build
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/hlibrary.mk
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment