2021-08-14 18:51:11 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
2016-07-23 16:01:23 +00:00
|
|
|
# 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
|
2022-01-20 20:01:10 +00:00
|
|
|
pkgver=1.2.2
|
|
|
|
pkgrel=1
|
2016-07-23 16:01:23 +00:00
|
|
|
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)
|
2021-09-15 22:05:28 +00:00
|
|
|
makedepends=(freeglut mesa glu)
|
2016-07-23 16:01:23 +00:00
|
|
|
optdepends=('freeglut: vwebp viewer')
|
2021-08-14 18:51:11 +00:00
|
|
|
provides=(libwebp{,decoder,demux,mux}.so)
|
2021-09-15 22:05:28 +00:00
|
|
|
source=(https://storage.googleapis.com/downloads.webmproject.org/releases/webp/$pkgname-$pkgver.tar.gz{,.asc})
|
2022-01-20 20:01:10 +00:00
|
|
|
sha256sums=('7656532f837af5f4cec3ff6bafe552c044dc39bf453587bd5b77450802f4aee6'
|
2021-09-15 22:05:28 +00:00
|
|
|
'SKIP')
|
2021-02-03 14:05:48 +00:00
|
|
|
validpgpkeys=('6B0E6B70976DE303EDF2F601F9C3D6BDB8232B5D') # WebP release signing key
|
2016-07-23 16:01:23 +00:00
|
|
|
|
|
|
|
build() {
|
2021-09-15 22:05:28 +00:00
|
|
|
cd $pkgname-$pkgver
|
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-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() {
|
2021-09-15 22:05:28 +00:00
|
|
|
cd $pkgname-$pkgver
|
2017-04-29 16:20:27 +00:00
|
|
|
make check
|
|
|
|
}
|
2016-07-23 16:01:23 +00:00
|
|
|
|
2017-04-29 16:20:27 +00:00
|
|
|
package() {
|
2021-09-15 22:05:28 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
|
2017-04-29 16:20:27 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
2021-09-15 22:05:28 +00:00
|
|
|
|
2021-08-14 18:51:11 +00:00
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
|
2016-07-23 16:01:23 +00:00
|
|
|
}
|
|
|
|
|
2021-09-15 22:05:28 +00:00
|
|
|
# vim:set sw=2 et:
|