Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 export JAVA_HOME=/usr/lib/jvm/default-java
3
4 include /usr/share/dpkg/architecture.mk
5
6 %:
7 dh $@ --buildsystem=gradle
8
9 override_dh_auto_build:
10 dh_auto_build -- -Dfile.encoding=UTF-8 assemble
11
12 override_dh_missing:
13 dh_missing --fail-missing
14
15 # aapt is required, but apktool can do a couple important things
16 # without it. Other arch:all tools depend on apktool, so this seems
17 # like the best option.
18 #
19 # To get the list of supported arches:
20 # curl -s 'https://packages.debian.org/search?keywords=aapt&exact=1&suite=sid' | grep -Eo 'amd64 [a-z0-9 ]+'
21 override_dh_gencontrol:
22 ifeq ($(DEB_HOST_ARCH_CPU),$(filter $(DEB_HOST_ARCH_CPU),amd64 arm64 armel armhf i386 mips64el mipsel))
23 dh_gencontrol -- -Vapktool:Depends="aapt" -Vapktool:Recommends="";
24 else
25 dh_gencontrol -- -Vapktool:Depends="" -Vapktool:Recommends="aapt";
26 endif