blob: d20443aa592e890d92ab0a26df7f819cf7bc03cf (
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
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
_android_arch=x86
pkgname=android-${_android_arch}-lzo
pkgver=2.10
pkgrel=1
arch=('any')
pkgdesc="Portable lossless data compression library (android)"
depends=('android-ndk')
makedepends=('android-configure')
options=(!strip !buildflags staticlibs !emptydirs)
license=("GPL")
url="http://www.oberhumer.com/opensource/lzo"
source=("http://www.oberhumer.com/opensource/lzo/download/lzo-${pkgver}.tar.gz")
sha1sums=('4924676a9bae5db58ef129dc1cebce3baa3c4b5d')
build() {
cd "${srcdir}/lzo-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-configure
make $MAKEFLAGS
# build minilzo
${ANDROID_CC} $CFLAGS -fpic -Iinclude/lzo -o minilzo/minilzo.o -c minilzo/minilzo.c
${ANDROID_AR} rcs libminilzo.a minilzo/minilzo.o
${ANDROID_CC} $LDFLAGS -shared -o libminilzo.so -Wl,-soname,libminilzo.so minilzo/minilzo.o
}
package() {
cd "${srcdir}/lzo-${pkgver}"
source android-env ${_android_arch}
make DESTDIR="$pkgdir" install
install -m644 libminilzo.so "$pkgdir/${ANDROID_PREFIX_LIB}"
install -m644 libminilzo.a "$pkgdir/${ANDROID_PREFIX_LIB}"
install -p -m644 minilzo/minilzo.h "$pkgdir/${ANDROID_PREFIX_INCLUDE}/lzo"
rm -r "${pkgdir}"/${ANDROID_PREFIX_SHARE}
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so
${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a
}
|