diff options
author | Gonzalo Exequiel Pedone | 2019-10-08 23:22:03 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2019-10-08 23:22:03 -0300 |
commit | abae614414e16cfb7ac5b49462de433bfd295092 (patch) | |
tree | a5bf4cb2609d72be30dd153d681b1a0059b2fb87 | |
download | aur-abae614414e16cfb7ac5b49462de433bfd295092.tar.gz |
First commit.
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 60 |
3 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3e73becbd227 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = android-armv7a-eabi-libxml2 + pkgdesc = XML parsing library, version 2 (android) + pkgver = 2.9.9 + pkgrel = 1 + url = http://www.xmlsoft.org/ + arch = any + license = LGPL + makedepends = android-configure + depends = android-ndk + depends = android-armv7a-eabi-libiconv + depends = android-armv7a-eabi-zlib + depends = android-armv7a-eabi-xz + options = !strip + options = !buildflags + options = staticlibs + options = !emptydirs + source = http://xmlsoft.org/sources/libxml2-2.9.9.tar.gz + sha256sums = 94fb70890143e3c6549f265cee93ec064c80a84c42ad0f23e85ee1fd6540a871 + +pkgname = android-armv7a-eabi-libxml2 + 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..3d002b60d230 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,60 @@ +# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com> +# Contributor: Filip Brcic <brcha@gna.org> + +_android_arch=armv7a-eabi + +pkgname=android-${_android_arch}-libxml2 +pkgver=2.9.9 +pkgrel=1 +pkgdesc="XML parsing library, version 2 (android)" +arch=('any') +url="http://www.xmlsoft.org/" +license=('LGPL') +depends=('android-ndk' + "android-${_android_arch}-libiconv" + "android-${_android_arch}-zlib" + "android-${_android_arch}-xz") +options=(!strip !buildflags staticlibs !emptydirs) +makedepends=('android-configure') +source=("http://xmlsoft.org/sources/libxml2-${pkgver}.tar.gz") +sha256sums=('94fb70890143e3c6549f265cee93ec064c80a84c42ad0f23e85ee1fd6540a871') + +prepare () { + cd "${srcdir}"/libxml2-${pkgver} + source android-env ${_android_arch} + + # disable doc & examples + sed -i "s| doc example | |g" Makefile.am + autoreconf -vfi +} + +build() +{ + cd "${srcdir}"/libxml2-${pkgver} + source android-env ${_android_arch} + + android-${_android_arch}-configure \ + --without-python + make $MAKEFLAGS + + # deps symbols are not included in static lib: + ${ANDROID_AR} x ${ANDROID_PREFIX_LIB}/libiconv.a + ${ANDROID_AR} x ${ANDROID_PREFIX_LIB}/liblzma.a + ${ANDROID_AR} x ${ANDROID_PREFIX_LIB}/libz.a + ${ANDROID_AR} cru .libs/libxml2.a *.o + ${ANDROID_RANLIB} .libs/libxml2.a +} + +package() +{ + cd "${srcdir}"/libxml2-${pkgver} + source android-env ${_android_arch} + + make DESTDIR="$pkgdir" install + rm -r "${pkgdir}"/${ANDROID_PREFIX_BIN} + rm -r "${pkgdir}"/${ANDROID_PREFIX_SHARE} + rm -f "${pkgdir}"/${ANDROID_PREFIX_LIB}/xml2Conf.sh + ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so + ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a +} + |