summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD28
3 files changed, 30 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 03e70d035de..19a0f9ccb27 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,21 @@
pkgbase = android-backup-extractor-git
pkgdesc = Utility to extract and repack Android backups created with adb backup
- pkgver = r46.434afd1
- pkgrel = 1
+ pkgver = r113.07bb660
+ pkgrel = 2
url = https://github.com/nelenkov/android-backup-extractor
arch = any
- license = apache
+ license = custom:Apache
makedepends = git
makedepends = apache-ant
- depends = bcprov
- provides = abe
+ makedepends = java-environment>=11
+ depends = bcprov>=1.71
+ depends = java-runtime-headless>=11
+ depends = sh
+ provides = abe.jar
+ provides = android-backup-extractor
+ conflicts = abe
+ conflicts = android-backup-extractor
source = android-backup-extractor-git::git+https://github.com/nelenkov/android-backup-extractor.git
sha256sums = SKIP
pkgname = android-backup-extractor-git
-
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..05c6d4d4c97
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
index c17d1b9cb24..e13851aa9e0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,17 @@
+# Maintainer: Jason Nader <jason *add-dot-here* nader *you-know-what-goes-here* protonmail.com>
+# Maintainer: Marcell Meszaros < marcell.meszaros AT runbox.eu >
+
pkgname=android-backup-extractor-git
-pkgver=r46.434afd1
-pkgrel=1
+pkgver=r113.07bb660
+pkgrel=2
pkgdesc="Utility to extract and repack Android backups created with adb backup"
arch=('any')
-makedepends=('git' 'apache-ant')
-depends=('bcprov')
+makedepends=('git' 'apache-ant' 'java-environment>=11')
+depends=('bcprov>=1.71' 'java-runtime-headless>=11' 'sh')
url="https://github.com/nelenkov/android-backup-extractor"
-license=('apache')
-provides=('abe')
-
+license=('custom:Apache') # Apache 2.0 license with copyright notice
+provides=('abe.jar' 'android-backup-extractor')
+conflicts=('abe' 'android-backup-extractor')
source=("$pkgname"::git+${url}.git)
sha256sums=('SKIP')
@@ -22,20 +25,21 @@ prepare() {
cd ${srcdir}/${pkgname}
# 1. set correct path to system bcprov
# 2. do not include bcprov classes in the final abe.jar file
- sed -e 's@lib/bcprov-jdk15on-150.jar@/usr/share/java/bcprov.jar@g' \
+ sed -e 's@lib/bcprov-jdk15on-1.70.jar@/usr/share/java/bcprov/bcprov.jar@g' \
-e 's@<zipfileset.*@@g' \
-i build.xml || return 1
# do not use the bundled abe script, a simple wrapper is good enough
echo '#!/bin/sh' > arch-abe
- echo "CP=/usr/share/java/bcprov.jar:/usr/share/java/${pkgname}/abe.jar" >> arch-abe
- echo 'exec /usr/bin/java -cp $CP org.nick.abe.Main "$@"' >> arch-abe
+ echo "CP=\"/usr/share/java/bcprov/bcprov.jar:/usr/share/java/${pkgname}/abe.jar\"" >> arch-abe
+ echo 'exec /usr/bin/java -cp "$CP" org.nick.abe.Main "$@"' >> arch-abe
chmod +x arch-abe
}
build() {
cd "${srcdir}/${pkgname}"
- ant
+ latest_version="$(archlinux-java status | grep 'java-[0-9][0-9]' | sort --reverse | head --lines 1 | sed 's/(.*)//g' | tr -d '[:space:]')"
+ JAVA_HOME="/usr/lib/jvm/${latest_version}" ant
}
package() {
@@ -47,5 +51,3 @@ package() {
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
-
-# vim:set ts=2 sw=2 et: