Filter the upstream tarball with the Files-Excluded field in d/copyright
Emmanuel Bourg
4 years ago
1 | 1 |
|
2 | 2 |
* Team upload.
|
3 | 3 |
* Simplified the OS X and ASM patches
|
|
4 |
* Filter the upstream tarball with the Files-Excluded field in d/copyright
|
4 | 5 |
* Standards-Version updated to 4.2.1
|
5 | 6 |
* Use salsa.debian.org Vcs-* URLs
|
6 | 7 |
|
0 | 0 |
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0
|
1 | 1 |
Upstream-Name: lwjgl - Lightweight Java Game Library
|
2 | 2 |
Upstream-Contact: LWJGL developers <info@lwjgl.org>
|
|
3 |
Files-Excluded: *.class
|
|
4 |
*.jar
|
|
5 |
src/generated/*
|
|
6 |
src/native/generated/*
|
3 | 7 |
|
4 | 8 |
Files: *
|
5 | 9 |
Copyright: 2002-2015, Lightweight Java Game Library Project
|
0 | 0 |
#!/usr/bin/make -f
|
1 | |
|
2 | |
NAME := $(shell dpkg-parsechangelog| sed -n '/^Source/{s/Source: \(.*\)/\1/p}')
|
3 | |
VERSION := $(shell dpkg-parsechangelog| sed -n '/^Version/{s/Version: \(.*\)-[0-9]*$$/\1/;s/+dfsg//p}')
|
4 | |
TMPDIR := $(NAME)-$(VERSION)
|
5 | |
TAR := ../$(NAME)_$(VERSION).orig.tar.gz
|
6 | |
TARDFSG := ../$(NAME)_$(VERSION)+dfsg.orig.tar.gz
|
7 | 1 |
|
8 | 2 |
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
9 | 3 |
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-$(DEB_HOST_ARCH)
|
|
25 | 19 |
ant javadoc
|
26 | 20 |
|
27 | 21 |
override_dh_auto_install:
|
28 | |
jh_installjavadoc -plib$(NAME)-java-doc doc/javadoc
|
|
22 |
jh_installjavadoc -pliblwjgl-java-doc doc/javadoc
|
29 | 23 |
|
30 | 24 |
override_dh_auto_clean:
|
31 | 25 |
find src/native/ -name '*org_lwjgl_*.h' -delete
|
32 | 26 |
rm -rf src/native/generated src/generated doc bin libs dist res temp
|
33 | 27 |
jh_clean
|
34 | |
|
35 | |
get-orig-source:
|
36 | |
rm -f $(TAR)
|
37 | |
uscan --verbose --download-version $(VERSION) \
|
38 | |
--force-download --repack --no-symlink --rename
|
39 | |
mkdir $(TMPDIR) && tar -C $(TMPDIR) -zxf $(TAR) && rm $(TAR)
|
40 | |
cd $(TMPDIR) && find . -type f -exec fromdos {} \;
|
41 | |
echo "The following files will not be included in Debian tarball:"
|
42 | |
cd $(TMPDIR) && find . \( -name '*.class' -o -name '*.jar' \
|
43 | |
-o -path './src/generated/*' -o -path './src/native/generated/*' \) \
|
44 | |
-print -delete
|
45 | |
ZIP=--best tar --exclude-vcs --exclude src/generated \
|
46 | |
--exclude src/native/generated -zcf $(TARDFSG) $(TMPDIR)
|
47 | |
rm -rf $(TMPDIR)
|
0 | 0 |
version=4
|
1 | |
opts="dversionmangle=s/\+dfsg//" \
|
|
1 |
opts="repack,compression=xz,dversionmangle=s/\+dfsg//" \
|
2 | 2 |
http://sf.net/java-game-lib/lwjgl-source-(\d.*).zip
|