File: rules

package info (click to toggle)
xclip 0.12%2Bsvn84-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 228 kB
  • ctags: 59
  • sloc: ansic: 1,033; sh: 250; makefile: 81
file content (20 lines) | stat: -rwxr-xr-x 588 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

%:
	dh $@ --with autoreconf

override_dh_auto_test:
ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" ""
	xvfb-run -a ./xctest
endif

REV=$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*[+~]svn([0-9]+).*,\1,p')
VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
get-orig-source:
	rm -rf xclip-$(VER).orig
	svn -q export -r $(REV) https://xclip.svn.sourceforge.net/svnroot/xclip/trunk \
		xclip-$(VER).orig
	GZIP=--best tar -cz --owner root --group root --mode a+rX \
		-f xclip_$(VER).orig.tar.gz \
		xclip-$(VER).orig
	rm -r xclip-$(VER).orig