2016-07-23 16:01:23 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
|
|
|
# Contributor: Alexander Rødseth <rodseth@gmail.com>
|
|
|
|
# Contributor: Jon Nordby <jononor@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - disable neon on !AArch64
|
|
|
|
|
|
|
|
pkgname=libwebp
|
2018-04-28 23:30:46 +00:00
|
|
|
pkgver=1.0.0
|
2016-07-23 16:01:23 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="WebP library and conversion tools"
|
2018-01-11 13:38:46 +00:00
|
|
|
arch=(x86_64)
|
2016-07-23 16:01:23 +00:00
|
|
|
url="https://developers.google.com/speed/webp/"
|
|
|
|
license=(BSD)
|
|
|
|
depends=(libpng libjpeg libtiff giflib)
|
2017-04-29 16:20:27 +00:00
|
|
|
makedepends=(freeglut mesa glu git)
|
2016-07-23 16:01:23 +00:00
|
|
|
optdepends=('freeglut: vwebp viewer')
|
2018-04-28 23:30:46 +00:00
|
|
|
_commit=698b8844e38a0c5ca50bb20f866e71291bfc3b36 # tags/v1.0.0^0
|
2017-04-29 16:20:27 +00:00
|
|
|
source=("git+https://chromium.googlesource.com/webm/libwebp#commit=$_commit")
|
|
|
|
sha256sums=('SKIP')
|
2017-01-13 13:25:28 +00:00
|
|
|
validpgpkeys=('6B0E6B70976DE303EDF2F601F9C3D6BDB8232B5D')
|
2016-07-23 16:01:23 +00:00
|
|
|
|
2017-04-29 16:20:27 +00:00
|
|
|
pkgver() {
|
|
|
|
cd $pkgname
|
|
|
|
git describe --tags | sed 's/^v//;s/-/+/g'
|
|
|
|
}
|
|
|
|
|
2016-07-23 16:01:23 +00:00
|
|
|
prepare() {
|
2017-04-29 16:20:27 +00:00
|
|
|
cd $pkgname
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2016-07-23 16:01:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2017-04-29 16:20:27 +00:00
|
|
|
cd $pkgname
|
2016-07-23 16:01:23 +00:00
|
|
|
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon"
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--enable-swap-16bit-csp \
|
|
|
|
--enable-experimental \
|
|
|
|
--enable-libwebp{mux,demux,decoder,extras} \
|
|
|
|
--disable-static $CONFIG
|
2017-04-29 16:20:27 +00:00
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
2016-07-23 16:01:23 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2017-04-29 16:20:27 +00:00
|
|
|
check() {
|
|
|
|
cd $pkgname
|
|
|
|
make check
|
|
|
|
}
|
2016-07-23 16:01:23 +00:00
|
|
|
|
2017-04-29 16:20:27 +00:00
|
|
|
package() {
|
|
|
|
cd $pkgname
|
|
|
|
make DESTDIR="$pkgdir" install
|
2016-07-23 16:01:23 +00:00
|
|
|
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|