archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libwebp / trunk / PKGBUILD
blobd9912a493622955efda71639bddc653e727f126f
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Alexander Rødseth <rodseth@gmail.com>
3 # Contributor: Jon Nordby <jononor@gmail.com>
5 pkgname=libwebp
6 pkgver=1.2.4
7 pkgrel=1
8 pkgdesc="WebP library and conversion tools"
9 url="https://developers.google.com/speed/webp/"
10 arch=(x86_64)
11 license=(BSD)
12 depends=(libpng libjpeg libtiff giflib)
13 makedepends=(freeglut mesa glu)
14 optdepends=('freeglut: vwebp viewer')
15 provides=(libwebp{,decoder,demux,mux}.so)
16 options=(debug)
17 source=(https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$pkgver.tar.gz{,.asc})
18 sha256sums=('7bf5a8a28cc69bcfa8cb214f2c3095703c6b73ac5fba4d5480c205331d9494df'
19             'SKIP')
20 validpgpkeys=('6B0E6B70976DE303EDF2F601F9C3D6BDB8232B5D') # WebP release signing key
22 build() {
23   cd libwebp-$pkgver
24   ./configure \
25     --prefix=/usr \
26     --disable-static \
27     --enable-swap-16bit-csp \
28     --enable-libwebp{mux,demux,decoder,extras}
29   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
30   make
33 check() {
34   cd libwebp-$pkgver
35   make check
38 package() {
39   cd libwebp-$pkgver
41   make DESTDIR="$pkgdir" install
43   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
46 # vim:set sw=2 sts=-1 et: