aboutsummaryrefslogtreecommitdiffstats
path: root/main/libwebp/APKBUILD
blob: 6727d5e9189cbc3263dab4dda18a3bb7185288c5 (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
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libwebp
pkgver=0.1.99
pkgrel=0
pkgdesc="Libraries for working with WebP images"
url="http://code.google.com/speed/webp/index.html"
arch="all"
license="BSD"
depends=
depends_dev=
makedepends="libpng-dev jpeg-dev tiff-dev automake autoconf libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://webp.googlecode.com/files/libwebp-$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$_builddir"
	sh autogen.sh
	./configure --prefix=/usr || 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
}

md5sums="aca4d43f3e8d1d9f87136d116acfb68d  libwebp-0.1.99.tar.gz"