aboutsummaryrefslogtreecommitdiffstats
path: root/community/potrace/APKBUILD
blob: d0b6dec53ccf774ef8d36836eecad1320580c000 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=potrace
pkgver=1.15
pkgrel=1
pkgdesc="Utility for tracing a bitmaps"
url="http://potrace.sourceforge.net/"
arch="all"
license="GPL"
depends_dev="zlib-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc"
source="http://potrace.sourceforge.net/download/$pkgver/$pkgname-$pkgver.tar.gz"

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

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--with-libpotrace
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="c9a8edd4f3339da587b9b32e12c83c8f7b993c7c23f551fa267545d9411679bc024924e23596ed1c83985693fc894b65dfa9f860275de395d9e0a88da37a4f02  potrace-1.15.tar.gz"