extra/libwebp to 1.2.1-2

This commit is contained in:
Kevin Mihelich 2021-09-15 22:05:28 +00:00
parent 2978361097
commit 4fd9346c4f

View file

@ -7,52 +7,43 @@
pkgname=libwebp pkgname=libwebp
pkgver=1.2.1 pkgver=1.2.1
pkgrel=1 pkgrel=2
pkgdesc="WebP library and conversion tools" pkgdesc="WebP library and conversion tools"
arch=(x86_64) arch=(x86_64)
url="https://developers.google.com/speed/webp/" url="https://developers.google.com/speed/webp/"
license=(BSD) license=(BSD)
depends=(libpng libjpeg libtiff giflib) depends=(libpng libjpeg libtiff giflib)
makedepends=(freeglut mesa glu git) makedepends=(freeglut mesa glu)
optdepends=('freeglut: vwebp viewer') optdepends=('freeglut: vwebp viewer')
provides=(libwebp{,decoder,demux,mux}.so) provides=(libwebp{,decoder,demux,mux}.so)
_commit=9ce5843dbabcfd3f7c39ec7ceba9cbeb213cbfdf # tags/v1.2.1^0 source=(https://storage.googleapis.com/downloads.webmproject.org/releases/webp/$pkgname-$pkgver.tar.gz{,.asc})
source=("git+https://chromium.googlesource.com/webm/libwebp#commit=$_commit") sha256sums=('808b98d2f5b84e9b27fdef6c5372dac769c3bda4502febbfa5031bd3c4d7d018'
sha256sums=('SKIP') 'SKIP')
validpgpkeys=('6B0E6B70976DE303EDF2F601F9C3D6BDB8232B5D') # WebP release signing key validpgpkeys=('6B0E6B70976DE303EDF2F601F9C3D6BDB8232B5D') # WebP release signing key
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/-/+/g'
}
prepare() {
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
}
build() { build() {
cd $pkgname cd $pkgname-$pkgver
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon" [[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon"
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--disable-static \ --disable-static \
--enable-swap-16bit-csp \ --enable-swap-16bit-csp \
--enable-experimental \
--enable-libwebp{mux,demux,decoder,extras} $CONFIG --enable-libwebp{mux,demux,decoder,extras} $CONFIG
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make make
} }
check() { check() {
cd $pkgname cd $pkgname-$pkgver
make check make check
} }
package() { package() {
cd $pkgname cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
} }
# vim:set ts=2 sw=2 et: # vim:set sw=2 et: