diff options
author | Gonzalo Exequiel Pedone | 2019-10-08 08:30:52 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2019-10-08 08:30:52 -0300 |
commit | b5659bd169c695c56d22aab49bede9e13157b7aa (patch) | |
tree | 95589ebd7f33ea08adbad045a796f4c54d7ff933 | |
download | aur-b5659bd169c695c56d22aab49bede9e13157b7aa.tar.gz |
First commit.
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 50 |
3 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0be17b0ca7af --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = android-x86-64-pcre + pkgdesc = A library that implements Perl 5-style regular expressions (android) + pkgver = 8.43 + pkgrel = 2 + url = http://www.pcre.org/ + arch = any + license = BSD + makedepends = android-configure + makedepends = android-x86-64-bzip2 + makedepends = android-x86-64-zlib + depends = android-ndk + optdepends = android-x86-64-bzip2 + optdepends = android-x86-64-zlib + options = !strip + options = !buildflags + options = staticlibs + options = !emptydirs + source = https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.bz2 + source = https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.bz2.sig + validpgpkeys = 45F68D54BBE23FB3039B46E59766E084FB0F43D8 + sha256sums = 91e762520003013834ac1adb4a938d53b22a216341c061b0cf05603b290faf6b + sha256sums = SKIP + +pkgname = android-x86-64-pcre + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..52742932e678 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +pkg +src +*.tar.xz +*.tar.gz +*.tar.bz2 +*.sig diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4db4a9086c3f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com> +# Contributor: drakkan <nicola.murino at gmail dot com> + +_android_arch=x86-64 + +pkgname=android-${_android_arch}-pcre +pkgver=8.43 +pkgrel=2 +pkgdesc="A library that implements Perl 5-style regular expressions (android)" +arch=(any) +url="http://www.pcre.org/" +license=("BSD") +depends=('android-ndk') +options=(!strip !buildflags staticlibs !emptydirs) +makedepends=('android-configure' + "android-${_android_arch}-bzip2" + "android-${_android_arch}-zlib") +optdepends=("android-${_android_arch}-bzip2" + "android-${_android_arch}-zlib") +source=("https://ftp.pcre.org/pub/pcre/pcre-$pkgver.tar.bz2"{,.sig}) +validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel +sha256sums=('91e762520003013834ac1adb4a938d53b22a216341c061b0cf05603b290faf6b' + 'SKIP') + +build() { + cd "${srcdir}"/pcre-${pkgver} + source android-env ${_android_arch} + + export LIBS="-L${ANDROID_PREFIX_LIB}" + export CPPFLAGS="-I${ANDROID_PREFIX_INCLUDE}" + + android-${_android_arch}-configure \ + --enable-jit \ + --enable-pcre16 \ + --enable-pcre32 \ + --enable-pcregrep-libz \ + --enable-pcregrep-libbz2 + make $MAKEFLAGS +} + +package() { + cd "${srcdir}"/pcre-${pkgver} + source android-env ${_android_arch} + + make DESTDIR="$pkgdir" install + rm -r "${pkgdir}"/${ANDROID_PREFIX_BIN} + rm -r "${pkgdir}"/${ANDROID_PREFIX_SHARE} + ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so + ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a +} |