aboutsummaryrefslogtreecommitdiffstats
path: root/main/libwebp/APKBUILD
blob: 577a73368dc16d5229bfd5a48128cf111e02b0d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libwebp
pkgver=0.4.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
	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="404f45a7d695217db2bb49e1e22ad49f  libwebp-0.4.2.tar.gz"
sha256sums="14d825d7c2ef7d49621bcb6b83466be455585e671ae0a2ebc1f2e07775a1722d  libwebp-0.4.2.tar.gz"
sha512sums="0213f92cc9a4303b9ae51ffbc72c083880bcd5c1d8b2f92fe514e0a11167925934d01155f89dc9e571dee51293ea26f8b8b486c5b980db20e921d653320a4d13  libwebp-0.4.2.tar.gz"