summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c92928c92996b743e2a0e291e31e1b02000bebb2 (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
pkgname=android-pkg-config
pkgver=2
pkgrel=1
pkgdesc='Support pkg-config script (does not depend on any particular version of pkg-config). Useful for pkg-config powered cross-compiling with mingw-w64, see http://tinyurl.com/pkg-config-cross for more info'
arch=('any')
url='http://pkg-config.freedesktop.org/'
license=('zlib')
depends=('pkg-config')
source=('android-pkgconfig.sh')
install='android-pkg-config.install'
md5sums=('SKIP')

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

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

package() {
    # This indeed has to go to the "normal" directory tree
    install -d ${pkgdir}/usr/bin

    for _arch in ${_architectures}; do
        install -m755 android-${_arch}-pkg-config  ${pkgdir}/usr/bin
    done
}