File: rules

package info (click to toggle)
segment 1.3.5~svn57+dfsg-1.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 548 kB
  • ctags: 782
  • sloc: java: 4,230; xml: 114; makefile: 22; sh: 5
file content (27 lines) | stat: -rwxr-xr-x 1,198 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
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
include /usr/share/cdbs/1/class/ant.mk

JAVA_HOME := /usr/lib/jvm/default-java
DEB_JARS := commons-cli commons-logging junit4
DEB_ANT_BUILD_TARGET := jardist
DEB_INSTALL_CHANGELOGS_ALL := doc/history.html
DEB_INSTALL_DOCS_ALL := doc/readme.html

VER := $(shell echo $(DEB_UPSTREAM_VERSION) | awk -F'~' '{print $$1}')
SVN_REV := $(shell echo $(DEB_UPSTREAM_VERSION) | awk -F'~' '{print $$2}' | sed 's/^svn//' | sed 's/\+dfsg.*//')

install/libsegment-java::
	install -m 644 -D build/dist/segment-$(VER).jar \
		$(CURDIR)/debian/$(cdbs_curpkg)/usr/share/java/segment-$(VER).jar
	dh_link -p$(cdbs_curpkg) usr/share/java/segment-$(VER).jar \
		usr/share/java/segment.jar

get-orig-source:
	svn export https://segment.svn.sourceforge.net/svnroot/segment/trunk/segment \
		-r $(SVN_REV) $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) && \
	rm -rf $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)/lib && \
	GZIP=--best tar czf $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz \
		$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) && \
	rm -rf $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)