aboutsummaryrefslogtreecommitdiffstats
path: root/main/libwebp
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-19 21:14:37 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-20 09:04:51 +0000
commit6cb5bb5c95360eb19c2721449372eafdc896e400 (patch)
treead20189a26b31bf3854d3c47db3e91d2b28c0e0f /main/libwebp
parentbc8c7687c1019e752ac9c9e8bb36c748f6eca543 (diff)
downloadaports-6cb5bb5c95360eb19c2721449372eafdc896e400.tar.bz2
aports-6cb5bb5c95360eb19c2721449372eafdc896e400.tar.xz
main/libwebp: modernise and add test suite
Diffstat (limited to 'main/libwebp')
-rw-r--r--main/libwebp/APKBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/main/libwebp/APKBUILD b/main/libwebp/APKBUILD
index d9e5505089..52db03b2ec 100644
--- a/main/libwebp/APKBUILD
+++ b/main/libwebp/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libwebp
pkgver=0.6.0
-pkgrel=0
+pkgrel=1
pkgdesc="Libraries for working with WebP images"
url="https://developers.google.com/speed/webp/"
arch="all"
@@ -23,14 +23,18 @@ build() {
--disable-static \
--enable-libwebpmux \
--enable-libwebpdemux \
- --enable-libwebpdecoder \
- || return 1
- make || return 1
+ --enable-libwebpdecoder
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir"/usr/share/doc/$pkgname
install -Dm644 PATENTS README "$pkgdir"/usr/share/doc/$pkgname
}