mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-15 21:52:11 +01:00
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libwebp
|
|
pkgver=0.4.3
|
|
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
|
|
rm "$pkgdir"/usr/lib/*.la || 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="08813525eeeffe7e305b4cbfade8ae9b libwebp-0.4.3.tar.gz"
|
|
sha256sums="efbe0d58fda936f2ed99d0b837ed7087d064d6838931f282c4618d2a3f7390c4 libwebp-0.4.3.tar.gz"
|
|
sha512sums="4975c055e94668cc3b8198443d141de91db6c9d99a79164631854b9b91eea2d9d92aefa361cb8e0fa8963a3deeb5ba6cc6ab55db1d7b038ae495b7e7cf5b2572 libwebp-0.4.3.tar.gz"
|