File: rules

package info (click to toggle)
highlight 3.41-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 5,024 kB
  • sloc: cpp: 22,087; php: 751; makefile: 366; ansic: 257; perl: 113; python: 97; sh: 5; tcl: 1
file content (16 lines) | stat: -rwxr-xr-x 497 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f
UPSTREAMTAG=upstream/3.3
SOURCEPKG=$(shell dpkg-parsechangelog | sed  -n 's/^Source: \(.*\)/\1/p')
UPSTREAM=$(shell dpkg-parsechangelog |  sed -n 's/^Version: \(.*\)-[^-]*/\1/p')
ORIG=${SOURCEPKG}_${UPSTREAM}.orig.tar.bz2

%: 
	dh $@

override_dh_auto_build:
	dh_auto_build --sourcedirectory=extras/swig -- perl
	dh_auto_build --sourcedirectory=src -- clean
	dh_auto_build -- LUA_LIBS=-llua5.2

get-orig-source: 
	git archive --format=tar ${UPSTREAMTAG} | bzip2 -9 > ../${ORIG}