mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-10 16:12:27 +01:00
52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libwebp
|
|
pkgver=1.0.1
|
|
pkgrel=0
|
|
pkgdesc="Libraries for working with WebP images"
|
|
url="https://developers.google.com/speed/webp"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
makedepends="autoconf automake giflib-dev libjpeg-turbo-dev libpng-dev libtool
|
|
tiff-dev"
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
|
|
source="https://downloads.webmproject.org/releases/webp/$pkgname-$pkgver.tar.gz"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--disable-static \
|
|
--enable-libwebpmux \
|
|
--enable-libwebpdemux \
|
|
--enable-libwebpdecoder
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install
|
|
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/
|
|
}
|
|
|
|
sha512sums="44e0c278b4569c03c39a1e047bccd7b4270bda12feae0dadc54f8a61fd6a66be011229f1e7e853f64749bcd9ea9e8146989e2b632459b67a4aaea4a8033a1361 libwebp-1.0.1.tar.gz"
|