mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
|
# 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
|
|
pkgver=1.2.2
|
|
pkgrel=1
|
|
pkgdesc="WebP library and conversion tools"
|
|
arch=(x86_64)
|
|
url="https://developers.google.com/speed/webp/"
|
|
license=(BSD)
|
|
depends=(libpng libjpeg libtiff giflib)
|
|
makedepends=(freeglut mesa glu)
|
|
optdepends=('freeglut: vwebp viewer')
|
|
provides=(libwebp{,decoder,demux,mux}.so)
|
|
source=(https://storage.googleapis.com/downloads.webmproject.org/releases/webp/$pkgname-$pkgver.tar.gz{,.asc})
|
|
sha256sums=('7656532f837af5f4cec3ff6bafe552c044dc39bf453587bd5b77450802f4aee6'
|
|
'SKIP')
|
|
validpgpkeys=('6B0E6B70976DE303EDF2F601F9C3D6BDB8232B5D') # WebP release signing key
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon"
|
|
./configure \
|
|
--prefix=/usr \
|
|
--disable-static \
|
|
--enable-swap-16bit-csp \
|
|
--enable-libwebp{mux,demux,decoder,extras} $CONFIG
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
|
|
}
|
|
|
|
# vim:set sw=2 et:
|