# Contributor: Kiyoshi Aman # Maintainer: Natanael Copa pkgname=libwebp pkgver=0.5.2 pkgrel=0 pkgdesc="Libraries for working with WebP images" url="https://developers.google.com/speed/webp/" arch="all" license="BSD" depends= depends_dev= makedepends="libpng-dev libjpeg-turbo-dev tiff-dev giflib-dev automake autoconf libtool" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" source="http://downloads.webmproject.org/releases/webp/libwebp-$pkgver.tar.gz" _builddir="$srcdir/$pkgname-$pkgver" build() { cd "$_builddir" sh autogen.sh ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-static \ --enable-libwebpmux \ --enable-libwebpdemux \ --enable-libwebpdecoder \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 mkdir -p "$pkgdir"/usr/share/doc/$pkgname install -Dm644 PATENTS README "$pkgdir"/usr/share/doc/$pkgname } tools() { pkgdesc="The WebP command line tools" mkdir -p "$subpkgdir"/usr/ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } md5sums="6f36b38c2483b32906f946a621eb0c2e libwebp-0.5.2.tar.gz" sha256sums="b75310c810b3eda222c77f6d6c26b061240e3d9060095de44b2c1bae291ecdef libwebp-0.5.2.tar.gz" sha512sums="f0d798e0ef8b58bc159c53214a62b29dff4309ced9efd7c5f0e6f837877906db8318c4c3453f92725ef6f2b069b931ce3e7961ca26db723a31eedc7b52988de2 libwebp-0.5.2.tar.gz"