blob: b561daeef63cef3a8e73a6bc0b899ac8359e7d83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Eric Belanger <eric@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>
_android_arch=armv7a-eabi
pkgname=android-${_android_arch}-libxslt
pkgver=1.1.42
pkgrel=1
arch=('any')
pkgdesc="XML stylesheet transformation library (Android ${_android_arch})"
url="https://gitlab.gnome.org/GNOME/libxslt/-/wikis/home"
license=('custom:MIT')
groups=('android-libxslt')
depends=("android-${_android_arch}-libgcrypt"
"android-${_android_arch}-libxml2"
"android-${_android_arch}-xz"
'android-configure')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://gitlab.gnome.org/GNOME/libxslt/-/archive/v${pkgver}/libxslt-v${pkgver}.tar.gz"
'0001-Allow-undefined.patch'
'0002-Disable-programs-test-docs.patch')
md5sums=('839a3d767b12d37cf716b47a801254ed'
'44cd43c2b6e620197a78aa2973a23f0c'
'054e65c82ccafb95e5fe7b148a153fec')
prepare() {
cd "${srcdir}/libxslt-v${pkgver}"
source android-env ${_android_arch}
patch -p1 -i ../0001-Allow-undefined.patch
patch -p1 -i ../0002-Disable-programs-test-docs.patch
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "${srcdir}/libxslt-v${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-configure \
--without-python
make $MAKEFLAGS
}
package() {
cd "${srcdir}/libxslt-v${pkgver}"
source android-env ${_android_arch}
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/${ANDROID_PREFIX_SHARE}/man"
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|