2016-07-23 16:01:23 +00:00
|
|
|
# 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
|
2021-02-03 14:05:48 +00:00
|
|
|
pkgver=1.2.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')
|
2021-02-03 14:05:48 +00:00
|
|
|
_commit=fedac6cc69cda3e9e04b780d324cf03921fb3ff4 # tags/v1.2.0-rc3^0
|
2017-04-29 16:20:27 +00:00
|
|
|
source=("git+https://chromium.googlesource.com/webm/libwebp#commit=$_commit")
|
|
|
|
sha256sums=('SKIP')
|
2021-02-03 14:05:48 +00:00
|
|
|
validpgpkeys=('6B0E6B70976DE303EDF2F601F9C3D6BDB8232B5D') # WebP release signing key
|
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"
|
2021-02-03 14:05:48 +00:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--disable-static \
|
|
|
|
--enable-swap-16bit-csp \
|
|
|
|
--enable-experimental \
|
|
|
|
--enable-libwebp{mux,demux,decoder,extras} $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:
|