diff options
author | Martchus | 2024-10-13 21:51:29 +0200 |
---|---|---|
committer | Martchus | 2024-10-13 21:51:29 +0200 |
commit | 81ad56b97d1ed3b8f83e66f78d7e5e00e198e741 (patch) | |
tree | 5851ee7a6bc417d4781acd30352f410d85423ac1 /PKGBUILD | |
download | aur-81ad56b97d1ed3b8f83e66f78d7e5e00e198e741.tar.gz |
Update to 1.15.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4aa12e73a8be --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Martchus <martchus@gmx.net> +# Contributor: Stéphane Gaudreault <stephane@archlinux.org> +# Contributor: Jeff 'codemac' Mickey <jeff@archlinux.org> + +# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where +# you also find the URL of a binary repository. + +_pkgname=cppunit +_android_arch=x86 +pkgname=android-$_android_arch-$_pkgname +pkgver=1.15.1 +pkgrel=1 +pkgdesc="A C++ unit testing framework (Android, $_android_arch)" +arch=('any') +url="https://www.freedesktop.org/wiki/Software/cppunit" +license=('LGPL') +depends=('android-ndk') +makedepends=('android-configure') +conflicts=("android-$_pkgname-$_android_arch") +replaces=("android-$_pkgname-$_android_arch") +options=(!strip !buildflags !libtool staticlibs !emptydirs) +source=("https://dev-www.libreoffice.org/src/${_pkgname}-${pkgver}.tar.gz") +sha256sums=('89c5c6665337f56fd2db36bc3805a5619709d51fb136e51937072f63fcc717a7') + +build() { + source android-env ${_android_arch} + cd $_pkgname-$pkgver + android-${_android_arch}-configure \ + --enable-shared=yes \ + --enable-static=yes + make V=1 $MAKEFLAGS +} + +package() { + source android-env ${_android_arch} + cd $_pkgname-$pkgver + + make DESTDIR="${pkgdir}" install install-data + + rm -rf "${pkgdir}/${ANDROID_PREFIX_SHARE}" + ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so + ${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a +} |