blob: 3c31e295d7fb74774486a043387adc136f8c7988 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Maintainer: Muflone http://www.muflone.com/contacts/english/
# Contributor: navigaid <navigaid@gmail.com>
pkgname=android-apktool
pkgver=2.10.0
pkgrel=1
pkgdesc="a tool for reengineering Android apk files"
arch=('any')
url="https://github.com/iBotPeaches/Apktool"
license=('Apache-2.0')
depends=('java-runtime')
makedepends=('java-environment' 'gradle')
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/iBotPeaches/Apktool/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('054e4476ec732953c1cf9254d65d37f6dfffaceb0ddc977713926059dcfb5f9c')
build() {
cd "Apktool-${pkgver}"
gradle build --no-daemon shadowJar proguard
}
package() {
cd "Apktool-${pkgver}"
install -D -m 644 "brut.apktool/apktool-cli/build/libs/apktool-cli.jar" "${pkgdir}/usr/share/${pkgname}/apktool.jar"
install -D -m 755 "scripts/linux/apktool" "${pkgdir}/usr/share/${pkgname}/apktool"
install -d -m 755 "${pkgdir}/usr/bin"
ln -s "/usr/share/${pkgname}/apktool" "${pkgdir}/usr/bin/apktool"
}
|