File: rules

package info (click to toggle)
zstd-jni-java 1.5.2-5%2Bds-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 528 kB
  • sloc: java: 2,246; ansic: 1,031; sh: 547; xml: 68; makefile: 21
file content (28 lines) | stat: -rwxr-xr-x 917 bytes parent folder | download | duplicates (3)
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

export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export UTIL_DIR = src/main/java/com/github/luben/zstd/util
export PKG_VER = $(shell cat version)
%:
	dh $@ --buildsystem=maven --with javahelper --with maven_repo_helper

execute_before_dh_auto_configure:
	dh_auto_configure --buildsystem=cmake --package=libzstd-jni1

execute_before_dh_auto_build:
	dh_auto_build --buildsystem=cmake --package=libzstd-jni1
	printf "package com.github.luben.zstd.util;\n\npublic class ZstdVersion\
		\n{\n\tpublic static final String VERSION = \"${PKG_VER}\";\n}\
		\n" > ${UTIL_DIR}/ZstdVersion.java

override_dh_auto_install:
	dh_auto_install --buildsystem=cmake --package=libzstd-jni1 \
		--destdir=debian/libzstd-jni1
	dh_auto_install --package=libzstd-jni-java \
		--destdir=debian/libzstd-jni-java

override_dh_auto_test:

execute_before_dh_auto_clean:
	rm -f ${UTIL_DIR}/ZstdVersion.java