blob: 20877b3ef0771dfe8823741da21a6f9c9994925e (
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
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: drakkan <nicola.murino at gmail dot com>
_android_arch=x86-64
pkgname=android-${_android_arch}-libwebp
pkgver=1.3.0
pkgrel=1
pkgdesc="WebP library and conversion tools (android)"
arch=('any')
url="https://developers.google.com/speed/webp/"
license=("BSD")
depends=("android-${_android_arch}-libjpeg-turbo"
"android-${_android_arch}-libpng"
"android-${_android_arch}-libtiff"
"android-${_android_arch}-giflib")
groups=(android-libwebp)
options=(!strip !buildflags staticlibs !emptydirs)
makedepends=('android-configure')
source=("https://github.com/webmproject/libwebp/archive/v${pkgver}.tar.gz")
md5sums=('2d818a757f2de1a93d5009a69b3c1ff8')
prepare() {
cd "$srcdir/libwebp-${pkgver}"
source android-env ${_android_arch}
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "$srcdir/libwebp-${pkgver}"
source android-env ${_android_arch}
unset LDFLAGS
android-${_android_arch}-configure \
--enable-swap-16bit-csp \
--enable-experimental \
--enable-libwebp{mux,demux,decoder,extras}
make $MAKEFLAGS
}
package() {
cd "$srcdir/libwebp-${pkgver}"
source android-env ${_android_arch}
make DESTDIR="$pkgdir" install
rm -r "${pkgdir}"/${ANDROID_PREFIX_BIN}
rm -r "${pkgdir}"/${ANDROID_PREFIX_SHARE}
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so
${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a
}
|