community/potrace: modernize and add check

This commit is contained in:
Roberto Oliveira 2017-12-11 01:07:00 +00:00
parent 6148751a66
commit ad7a05e18a

View File

@ -2,19 +2,17 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=potrace pkgname=potrace
pkgver=1.15 pkgver=1.15
pkgrel=0 pkgrel=1
pkgdesc="Utility for tracing a bitmaps" pkgdesc="Utility for tracing a bitmaps"
url="http://potrace.sourceforge.net/" url="http://potrace.sourceforge.net/"
arch="all" arch="all"
license="GPL" license="GPL"
depends=""
depends_dev="zlib-dev" depends_dev="zlib-dev"
makedepends="$depends_dev" makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc" 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() { build() {
cd "$builddir" cd "$builddir"
@ -23,14 +21,18 @@ build() {
--host=$CHOST \ --host=$CHOST \
--prefix=/usr \ --prefix=/usr \
--mandir=/usr/share/man \ --mandir=/usr/share/man \
--with-libpotrace \ --with-libpotrace
|| return 1 make
make || return 1 }
check() {
cd "$builddir"
make check
} }
package() { package() {
cd "$builddir" cd "$builddir"
make DESTDIR="${pkgdir}" install make DESTDIR="$pkgdir" install
} }
sha512sums="c9a8edd4f3339da587b9b32e12c83c8f7b993c7c23f551fa267545d9411679bc024924e23596ed1c83985693fc894b65dfa9f860275de395d9e0a88da37a4f02 potrace-1.15.tar.gz" sha512sums="c9a8edd4f3339da587b9b32e12c83c8f7b993c7c23f551fa267545d9411679bc024924e23596ed1c83985693fc894b65dfa9f860275de395d9e0a88da37a4f02 potrace-1.15.tar.gz"