summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c22c87e523d291f928a170bdaf9dfd08941cb081 (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
pkgname=android-configure
pkgver=2
pkgrel=1
arch=(any)
pkgdesc="configure wrapper for Android (android)"
depends=('android-environment' 'android-pkg-config')
license=("GPL")
url="https://aur.archlinux.org/packages/android-configure"
source=("android-configure.sh")
md5sums=('SKIP')

_architectures="aarch64 armv7a-eabi x86 x86-64"

build() {
    for _arch in ${_architectures}; do
        sed "s|@TRIPLE@|${_arch}|g" android-configure.sh > android-${_arch}-configure
    done
}

package() {
    install -d "${pkgdir}"/usr/bin

    for _arch in ${_architectures}; do
        install -m 755 android-${_arch}-configure "${pkgdir}"/usr/bin/
    done
}