aboutsummaryrefslogtreecommitdiffstats
path: root/testing/potrace
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-11-30 13:42:48 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-11-30 13:45:09 +0000
commit33e42d98a49510143957cf1ed3cd2a2cd3b25aa4 (patch)
tree261dd16f18fa6914f407502244f613b00586582b /testing/potrace
parent0131f6b417fa0be915a31123d1cbc99de849e485 (diff)
downloadaports-33e42d98a49510143957cf1ed3cd2a2cd3b25aa4.tar.bz2
aports-33e42d98a49510143957cf1ed3cd2a2cd3b25aa4.tar.xz
testing/potrace: new aport
Diffstat (limited to 'testing/potrace')
-rw-r--r--testing/potrace/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/potrace/APKBUILD b/testing/potrace/APKBUILD
new file mode 100644
index 0000000000..974cc6ad35
--- /dev/null
+++ b/testing/potrace/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=potrace
+pkgver=1.12
+pkgrel=0
+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"
+
+_builddir="${srcdir}"/${pkgname}-${pkgver}
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --with-libpotrace \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="${pkgdir}" install
+}
+
+md5sums="314850e30ae4319f0615efdae485abaa potrace-1.12.tar.gz"
+sha256sums="b0bbf1d7badbebfcb992280f038936281b47ddbae212e8ae91e863ce0b76173b potrace-1.12.tar.gz"
+sha512sums="d971f96ea5cd7a243d1409ad94d2ad41e00d1733f56bcc00e12fcaf4d5eb6844bc73fd7dbd270d1876f7931619597d3cace0c2c76aed313046732c26621c2680 potrace-1.12.tar.gz"