aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-12-11 01:07:00 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-12-11 01:07:41 +0000
commitad7a05e18ad5302a10572562d68e09cbf11a3ae3 (patch)
tree939136e8d0a8e50125528f05037f3547e4814e0b
parent6148751a6693c195f6bffd2f61039bf2972c991e (diff)
downloadaports-ad7a05e18ad5302a10572562d68e09cbf11a3ae3.tar.gz
aports-ad7a05e18ad5302a10572562d68e09cbf11a3ae3.tar.bz2
aports-ad7a05e18ad5302a10572562d68e09cbf11a3ae3.tar.xz
community/potrace: modernize and add check
-rw-r--r--community/potrace/APKBUILD20
1 files changed, 11 insertions, 9 deletions
diff --git a/community/potrace/APKBUILD b/community/potrace/APKBUILD
index 7bb827385c..d0b6dec53c 100644
--- a/community/potrace/APKBUILD
+++ b/community/potrace/APKBUILD
@@ -2,19 +2,17 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=potrace
pkgver=1.15
-pkgrel=0
+pkgrel=1
pkgdesc="Utility for tracing a bitmaps"
url="http://potrace.sourceforge.net/"
arch="all"
license="GPL"
-depends=""
depends_dev="zlib-dev"
makedepends="$depends_dev"
-install=""
subpackages="$pkgname-dev $pkgname-doc"
-source="http://potrace.sourceforge.net/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+source="http://potrace.sourceforge.net/download/$pkgver/$pkgname-$pkgver.tar.gz"
-builddir="${srcdir}"/${pkgname}-${pkgver}
+builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
@@ -23,14 +21,18 @@ build() {
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
- --with-libpotrace \
- || return 1
- make || return 1
+ --with-libpotrace
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make DESTDIR="${pkgdir}" install
+ make DESTDIR="$pkgdir" install
}
sha512sums="c9a8edd4f3339da587b9b32e12c83c8f7b993c7c23f551fa267545d9411679bc024924e23596ed1c83985693fc894b65dfa9f860275de395d9e0a88da37a4f02 potrace-1.15.tar.gz"