blob: 1ff20241a9b2c56aa1d60ba8dd544a593740c025 (
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
|
# 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=x86
pkgname=android-${_android_arch}-libxslt
pkgver=1.1.39
pkgrel=2
arch=('any')
pkgdesc="XML stylesheet transformation library (Android, ${_android_arch})"
url="https://gitlab.gnome.org/GNOME/libxslt/-/wikis/home"
license=('custom:MIT')
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")
md5sums=('8058ddbcae9bc4a6ab75327e748561de')
prepare() {
cd "$srcdir/libxslt-v$pkgver"
source android-env ${_android_arch}
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_BIN}"
rm -rf "$pkgdir/${ANDROID_PREFIX_SHARE}/doc"
rm -rf "$pkgdir/${ANDROID_PREFIX_SHARE}/gtk-doc"
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
}
|