# Maintainer: Gonzalo Exequiel Pedone # Contributor: Sergej Pupykin # Contributor: Orivej Desh _android_arch=x86 pkgname=android-${_android_arch}-libunibreak pkgver=6.1 pkgrel=1 arch=("any") pkgdesc="An implementation of the line breaking algorithm as described in Unicode 5.2.0 Standard Annex 14, Revision 24 (Android ${_android_arch})" url="https://github.com/adah1972/libunibreak/" license=("custom:zlib/libpng") depends=('android-ndk') makedepends=('android-configure') options=(!strip !buildflags staticlibs !emptydirs) source=("https://github.com/adah1972/libunibreak/archive/libunibreak_${pkgver//./_}.tar.gz") sha256sums=('890674996168ef5ba143d80d49ab8b61594a4eb70198dcac76caf6e1bd264a41') build() { cd "$srcdir/libunibreak-libunibreak_${pkgver//./_}" source android-env ${_android_arch} ./bootstrap android-${_android_arch}-configure make $MAKEFLAGS } package() { cd "$srcdir/libunibreak-libunibreak_${pkgver//./_}" source android-env ${_android_arch} make DESTDIR="$pkgdir" install ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a }