archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libwebp / trunk / PKGBUILD
blob01bda6646bbab4bcfa572fb45df21b32823b81df
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.2
7 pkgrel=1
8 pkgdesc="WebP library and conversion tools"
9 arch=(x86_64)
10 url="https://developers.google.com/speed/webp/"
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 source=(https://storage.googleapis.com/downloads.webmproject.org/releases/webp/$pkgname-$pkgver.tar.gz{,.asc})
17 sha256sums=('7656532f837af5f4cec3ff6bafe552c044dc39bf453587bd5b77450802f4aee6'
18             'SKIP')
19 validpgpkeys=('6B0E6B70976DE303EDF2F601F9C3D6BDB8232B5D') # WebP release signing key
21 build() {
22   cd $pkgname-$pkgver
23   ./configure \
24     --prefix=/usr \
25     --disable-static \
26     --enable-swap-16bit-csp \
27     --enable-libwebp{mux,demux,decoder,extras}
28   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
29   make
32 check() {
33   cd $pkgname-$pkgver
34   make check
37 package() {
38   cd $pkgname-$pkgver
40   make DESTDIR="$pkgdir" install
42   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
45 # vim:set sw=2 et: