summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b252cc9b413d968a8f596b5816e3a9f352c2087 (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
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>

_android_arch=x86-64

pkgname=android-${_android_arch}-expat
pkgver=2.2.9
pkgrel=1
pkgdesc="An XML parser library (android)"
arch=('any')
url="http://expat.sourceforge.net"
license=("custom")
depends=('android-ndk')
options=(!strip !buildflags staticlibs !emptydirs)
makedepends=('android-configure')
source=("http://downloads.sourceforge.net/expat/expat-${pkgver}.tar.bz2")
sha256sums=('f1063084dc4302a427dabcca499c8312b3a32a29b7d2506653ecc8f950a9a237')

build() {
    cd "${srcdir}"/expat-${pkgver}
    source android-env ${_android_arch}

    android-${_android_arch}-configure --without-docbook
    make $MAKEFLAGS
}

package() {
    cd "${srcdir}"/expat-${pkgver}
    source android-env ${_android_arch}

    make DESTDIR="$pkgdir" install
    rm -r "${pkgdir}"/${ANDROID_PREFIX_SHARE} "${pkgdir}"/${ANDROID_PREFIX_BIN}
    ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so
    ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a
}