aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-07-21 13:28:05 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-07-21 13:28:13 +0000
commita8a40f44b7b43da7bb6afb4a9c7cf3f5693792c3 (patch)
treee2f7013b94f9ecb6adae74ff021e46722595e63b /testing
parent03a12863edf203b985ad8657cec4dfa5618622a9 (diff)
downloadaports-a8a40f44b7b43da7bb6afb4a9c7cf3f5693792c3.tar.bz2
aports-a8a40f44b7b43da7bb6afb4a9c7cf3f5693792c3.tar.xz
testing/libharu: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/libharu/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/libharu/APKBUILD b/testing/libharu/APKBUILD
new file mode 100644
index 0000000000..fcc2c7e6c7
--- /dev/null
+++ b/testing/libharu/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=libharu
+pkgver=2.3.0
+pkgrel=0
+pkgdesc="C library for generating PDF documents"
+url="https://github.com/libharu/libharu"
+arch="all"
+license="custom"
+depends=""
+depends_dev="libpng-dev"
+makedepends="$depends_dev automake autoconf libtool"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://github.com/libharu/libharu/archive/RELEASE_${pkgver//./_}.tar.gz"
+_builddir="$srcdir"/$pkgname-RELEASE_${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
+ touch include/config.h.in
+ aclocal
+ libtoolize
+ automake --add-missing
+ autoconf
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir/" install
+ install -d "$pkgdir/usr/share/licenses/$pkgname"
+ sed -n '102,120p' README > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+md5sums="4f916aa49c3069b3a10850013c507460 RELEASE_2_3_0.tar.gz"
+sha256sums="8f9e68cc5d5f7d53d1bc61a1ed876add1faf4f91070dbc360d8b259f46d9a4d2 RELEASE_2_3_0.tar.gz"
+sha512sums="ebcabf1e8488e21185a231e97b4c16f9de742ae0ac2ebc7535b72b6b8e2045c2619bc6a94a820f7f923b0dfeceb217408f4e4c613ef3602104373cdf000d3f41 RELEASE_2_3_0.tar.gz"