diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -5,11 +5,12 @@ _android_arch=aarch64 pkgname=android-${_android_arch}-libwmf pkgver=0.2.13 -pkgrel=2 +pkgrel=3 arch=('any') pkgdesc="A library for reading vector images in Microsoft's native Windows Metafile Format (WMF) (Android ${_android_arch})" url="http://wvware.sourceforge.net/libwmf.html" license=('LGPL') +groups=(android-libwmf) depends=("android-${_android_arch}-libx11" "android-${_android_arch}-libjpeg" "android-${_android_arch}-freetype2" @@ -18,18 +19,18 @@ makedepends=('android-configure' "android-${_android_arch}-libxt") optdepends=("android-${_android_arch}-gdk-pixbuf2: for pixbuf loader") options=(!strip !buildflags staticlibs !emptydirs) -source=("https://github.com/caolanm/libwmf/archive/v$pkgver.tar.gz") +source=("https://github.com/caolanm/libwmf/archive/v${pkgver}.tar.gz") sha256sums=('18ba69febd2f515d98a2352de284a8051896062ac9728d2ead07bc39ea75a068') prepare() { - cd "${srcdir}/libwmf-$pkgver" + cd "${srcdir}/libwmf-${pkgver}" source android-env ${_android_arch} autoreconf -fiv } build() { - cd "${srcdir}/libwmf-$pkgver" + cd "${srcdir}/libwmf-${pkgver}" source android-env ${_android_arch} export CFLAGS="${CFLAGS} -I${ANDROID_PREFIX_INCLUDE}/libpng" @@ -37,14 +38,14 @@ build() { android-${_android_arch}-configure \ --with-pic - make $MAKEFLAGS + make $MAKEFLAGS } package() { - cd "${srcdir}/libwmf-$pkgver" + cd "${srcdir}/libwmf-${pkgver}" source android-env ${_android_arch} - make DESTDIR="$pkgdir" install + make DESTDIR="${pkgdir}" install rm -f "${pkgdir}/${ANDROID_PREFIX_BIN}/"{wmf2eps,wmf2fig,wmf2gd,wmf2svg,wmf2x} find "${pkgdir}/${ANDROID_PREFIX_LIB}" -type f -name '*.so' -exec ${ANDROID_STRIP} -g --strip-unneeded {} \; find "${pkgdir}/${ANDROID_PREFIX_LIB}" -type f -name '*.a' -exec ${ANDROID_STRIP} -g {} \; |