extra/libwebp to 0.6.0-1

This commit is contained in:
Kevin Mihelich 2017-04-29 16:20:27 +00:00
parent 9b8dc14b0d
commit f7411bcb39

View file

@ -7,41 +7,50 @@
# - disable neon on !AArch64
pkgname=libwebp
pkgver=0.5.2
pkgver=0.6.0
pkgrel=1
pkgdesc="WebP library and conversion tools"
arch=(x86_64 i686)
url="https://developers.google.com/speed/webp/"
license=(BSD)
depends=(libpng libjpeg libtiff giflib)
makedepends=(freeglut mesa glu)
makedepends=(freeglut mesa glu git)
optdepends=('freeglut: vwebp viewer')
source=(https://storage.googleapis.com/downloads.webmproject.org/releases/webp/$pkgname-$pkgver.tar.gz{,.asc})
sha256sums=('b75310c810b3eda222c77f6d6c26b061240e3d9060095de44b2c1bae291ecdef'
'SKIP')
_commit=50d1a848bc56554af8413cfe681f94286a6371b3 # tags/v0.6.0^0
source=("git+https://chromium.googlesource.com/webm/libwebp#commit=$_commit")
sha256sums=('SKIP')
validpgpkeys=('6B0E6B70976DE303EDF2F601F9C3D6BDB8232B5D')
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/-/+/g'
}
prepare() {
cd "$srcdir/$pkgname-$pkgver"
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "$srcdir/$pkgname-$pkgver"
cd $pkgname
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon"
./configure --prefix=/usr \
--enable-swap-16bit-csp \
--enable-experimental \
--enable-libwebp{mux,demux,decoder,extras} \
--disable-static $CONFIG
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
check() {
cd $pkgname
make check
}
make DESTDIR="$pkgdir/" install
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}