blob: 3ec3e0f63ecf4493417622c65ababfe10c895ac5 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: The one with the braid <info@braid.business>
pkgname=bundletool-git
_name=bundletool
pkgver=1.18.0.r0.ge5819d7
pkgrel=1
pkgdesc='A command-line tool to manipulate Android App Bundles'
arch=('any')
url="https://g.co/androidappbundle"
license=('Apache-2.0')
depends=(
'java-runtime'
)
makedepends=(
'gradle'
)
# prevent conflicts with binary or release packages
provides=("$_name")
conflicts=("$_name")
# declare the source from git
source=(
"git+https://github.com/google/${_name}.git"
"bundletool.sh"
)
# this is a git build, we do not want to pin to a version
sha256sums=('SKIP'
'3e00767959cb7cb78b76856ae76b61f37b481ca77f28b50a27acdc4c1820891e')
pkgver() {
cd "${srcdir}/${_name}"
git describe --tags --always --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
# override pub cache
export PUB_CACHE="${srcdir}/pub_cache"
# enter the source directory
cd "${srcdir}/${_name}"
gradle executableJar
}
package () {
install -Dm555 "${srcdir}/${_name}/build/libs/${_name}-all.jar" "$pkgdir/usr/share/java/${_name}/${_name}.jar"
install -Dm755 "${srcdir}/bundletool.sh" "${pkgdir}/usr/bin/bundletool"
}
# vim: set sw=2 ts=2 et:
|