1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Alexander Rødseth <rodseth@gmail.com>
3 # Contributor: Jon Nordby <jononor@gmail.com>
8 pkgdesc="WebP library and conversion tools"
9 url="https://developers.google.com/speed/webp/"
12 depends=(libpng libjpeg libtiff giflib)
13 makedepends=(cmake ninja)
14 provides=(libwebp{,decoder,demux,mux}.so libsharpyuv.so)
16 source=(https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$pkgver.tar.gz{,.asc})
17 sha256sums=('64ac4614db292ae8c5aa26de0295bf1623dbb3985054cb656c55e67431def17c'
19 validpgpkeys=('6B0E6B70976DE303EDF2F601F9C3D6BDB8232B5D') # WebP release signing key
23 -DCMAKE_INSTALL_PREFIX=/usr
24 -DCMAKE_BUILD_TYPE=None
25 -DCMAKE_SKIP_INSTALL_RPATH=ON
26 -DBUILD_SHARED_LIBS=ON
27 -DWEBP_BUILD_VWEBP=OFF
28 -DWEBP_BUILD_EXTRAS=OFF
31 # Mimic autotools build without --enable-asserts
35 cmake -S libwebp-$pkgver -B build -G Ninja "${cmake_options[@]}"
41 ctest --output-on-failure --stop-on-failure -j$(nproc)
45 DESTDIR="$pkgdir" cmake --install build
47 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 \
48 libwebp-$pkgver/COPYING
51 # vim:set sw=2 sts=-1 et: