Commit 37f740f2 authored by Francesco Colista's avatar Francesco Colista

community/libharu: moved from testing

parent cb6d4821
......@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libharu
pkgver=2.3.0
pkgrel=0
pkgrel=1
pkgdesc="C library for generating PDF documents"
url="https://github.com/libharu/libharu"
arch="all"
......@@ -13,16 +13,10 @@ 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//./_}
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
cd "$builddir"
touch include/config.h.in
aclocal
libtoolize
......@@ -31,13 +25,13 @@ prepare() {
}
build() {
cd "$_builddir"
cd "$builddir"
./configure --prefix=/usr
make || return 1
}
package() {
cd "$_builddir"
cd "$builddir"
make DESTDIR="$pkgdir/" install
install -d "$pkgdir/usr/share/licenses/$pkgname"
sed -n '102,120p' README > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment