debian swirl logo

Back to the packages list jlha-utils

#!/usr/bin/make -f
# debian/rules for jlha-utils (uses cdbs).
# This file is public domain.

UPSTREAM_VERSION := $(shell dpkg-parsechangelog |\
		egrep '^Version:' | cut -f2 -\d' ' | cut -f1 -d- )

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk

JAVA_HOME := /usr/lib/jvm/default-java
DEB_ANT_BUILDFILE := build.xml
DEB_ANT_BUILD_TARGET := compile
DEB_INSTALL_DOCS_ALL := TODO

install/jlha-utils::
		install -D -m 644 target/jlhafrontend.jar \
			$(CURDIR)/debian/jlha-utils/usr/share/java/jlhafrontend-$(UPSTREAM_VERSION).jar
		dh_link /usr/share/java/jlhafrontend-$(UPSTREAM_VERSION).jar /usr/share/java/jlhafrontend.jar
		install -D -m 755 debian/jlha.sh debian/jlha-utils/usr/bin/jlha

build/jlha-utils::
		docbook-to-man debian/jlha.sgml > jlha.1

Builds:

jlha-utils
command-line lzh archiver written in java