File: rules

package info (click to toggle)
libbs2b 3.1.0+dfsg-2.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,612 kB
  • ctags: 197
  • sloc: sh: 9,174; ansic: 1,500; cpp: 190; makefile: 75
file content (28 lines) | stat: -rwxr-xr-x 833 bytes parent folder | download
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
#!/usr/bin/make -f

LDFLAGS += -Wl,--as-needed

%:
	dh $@ --parallel --with autoreconf


PROJECT="bs2b/libbs2b"
PACKAGE=libbs2b
VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)+.*/\1/p')
TARBALL=$(PACKAGE)_$(VERSION).orig.tar.gz


get-orig-source:
	wget -c http://downloads.sourceforge.net/project/$(PROJECT)/$(VERSION)/$(PACKAGE)-$(VERSION).tar.gz
	tar zxf $(PACKAGE)-$(VERSION).tar.gz
	find $(PACKAGE)-$(VERSION)/win32/* -type d -exec rm -rf {} +
	mv $(PACKAGE)-$(VERSION) $(PACKAGE)_$(VERSION)+dfsg.orig
	tar zcf ../$(PACKAGE)_$(VERSION)+dfsg.orig.tar.gz $(PACKAGE)_$(VERSION)+dfsg.orig
	rm -r $(PACKAGE)_$(VERSION)+dfsg.orig $(PACKAGE)-$(VERSION).tar.gz

override_dh_auto_configure:
	dh_auto_configure -- --libdir="\$${prefix}/lib/$(DEB_HOST_MULTIARCH)"

override_dh_auto_clean:
	dh_auto_clean
	rm -f config.log