blob: a49bde2eb07f8c124e30d3a0cd9306989b0df51e (
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
39
40
41
42
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libharu
pkgver=2.3.0
pkgrel=1
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() {
cd "$builddir"
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"
|