Skip to content

Instantly share code, notes, and snippets.

@steinarb

steinarb/rules

Created Jan 20, 2018
Embed
What would you like to do?
rules file with correct placement of the build commands
#!/usr/bin/make -f
DISTRIBUTION = $(shell lsb_release -sr)
VERSION = 4.1.4
PACKAGEVERSION = $(VERSION)-0~$(DISTRIBUTION)0
TARBALL = apache-karaf-$(VERSION)-src.tar.gz
URL = http://apache.uib.no/karaf/$(VERSION)/$(TARBALL)
SRC=unpacked-src
%:
dh $@
override_dh_auto_clean:
override_dh_auto_test:
override_dh_auto_build:
wget -N --progress=dot:mega $(URL)
mkdir -p $(SRC)
(cd $(SRC); tar --strip-components=1 -xf ../$(TARBALL) )
(cd $(SRC); mvn clean install -DskipTests=true )
override_dh_auto_install:
override_dh_gencontrol:
dh_gencontrol -- -v$(PACKAGEVERSION)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment