summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcell Meszaros2022-05-31 15:23:35 +0200
committerMarcell Meszaros2022-05-31 15:23:35 +0200
commit35281ca08a1b54bc357a3e33cd355ec3d8633ad7 (patch)
treec0c05497a1a59152d8ab1d9e6a30a9f82e5efd00
parent07e94b1507a075e3f2d001609881f84fc79db511 (diff)
downloadaur-35281ca08a1b54bc357a3e33cd355ec3d8633ad7.tar.gz
cosmetic changes
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD35
2 files changed, 19 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 19a0f9ccb27..6cd3f575c75 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = android-backup-extractor-git
pkgdesc = Utility to extract and repack Android backups created with adb backup
- pkgver = r113.07bb660
- pkgrel = 2
+ pkgver = r115.g33a2f6c
+ pkgrel = 1
url = https://github.com/nelenkov/android-backup-extractor
arch = any
license = custom:Apache
@@ -16,6 +16,6 @@ pkgbase = android-backup-extractor-git
conflicts = abe
conflicts = android-backup-extractor
source = android-backup-extractor-git::git+https://github.com/nelenkov/android-backup-extractor.git
- sha256sums = SKIP
+ b2sums = SKIP
pkgname = android-backup-extractor-git
diff --git a/PKGBUILD b/PKGBUILD
index e13851aa9e0..1a822bb685d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,27 +2,27 @@
# Maintainer: Marcell Meszaros < marcell.meszaros AT runbox.eu >
pkgname=android-backup-extractor-git
-pkgver=r113.07bb660
-pkgrel=2
-pkgdesc="Utility to extract and repack Android backups created with adb backup"
+pkgver=r115.g33a2f6c
+pkgrel=1
+pkgdesc='Utility to extract and repack Android backups created with adb backup'
arch=('any')
-makedepends=('git' 'apache-ant' 'java-environment>=11')
-depends=('bcprov>=1.71' 'java-runtime-headless>=11' 'sh')
-url="https://github.com/nelenkov/android-backup-extractor"
+url="https://github.com/nelenkov/${pkgname%-git}"
license=('custom:Apache') # Apache 2.0 license with copyright notice
+depends=('bcprov>=1.71' 'java-runtime-headless>=11' 'sh')
+makedepends=('git' 'apache-ant' 'java-environment>=11')
provides=('abe.jar' 'android-backup-extractor')
conflicts=('abe' 'android-backup-extractor')
-source=("$pkgname"::git+${url}.git)
-sha256sums=('SKIP')
+source=("${pkgname}::git+${url}.git")
+b2sums=('SKIP')
pkgver() {
- cd "${srcdir}/${pkgname}"
+ cd "${pkgname}"
# use the revision count.hash
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
- cd ${srcdir}/${pkgname}
+ cd "${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-1.70.jar@/usr/share/java/bcprov/bcprov.jar@g' \
@@ -37,17 +37,14 @@ prepare() {
}
build() {
- cd "${srcdir}/${pkgname}"
+ cd "${pkgname}"
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() {
- cd "${srcdir}/${pkgname}"
- install -m755 -d "${pkgdir}/usr/bin"
- install arch-abe "${pkgdir}/usr/bin/abe"
- install -m755 -d "${pkgdir}/usr/share/java/${pkgname}"
- install abe.jar "${pkgdir}/usr/share/java/${pkgname}/abe.jar"
- install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
- install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ cd "${pkgname}"
+ install -Dm 644 arch-abe "${pkgdir}/usr/bin/abe"
+ install -Dm 644 abe.jar -t "${pkgdir}/usr/share/java/${pkgname}"
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}