Created
January 20, 2018 17:53
-
-
Save steinarb/51d057d35109efec1c4245f4a0d4f483 to your computer and use it in GitHub Desktop.
rules file with correct placement of the build commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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