aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpaper/APKBUILD
blob: f3aaea08c34cbca63cd1028b112a43b3a375a708 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpaper
pkgver=1.1.24
pkgrel=2
pkgdesc="Library for handling paper characteristics"
url="http://packages.debian.org/unstable/source/libpaper"
arch="all"
license="GPL"
subpackages="$pkgname-dev $pkgname-doc"
depends="bash"
makedepends=""
source="http://ftp.debian.org/debian/pool/main/libp/libpaper/libpaper_${pkgver}.tar.gz"

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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir="$pkgdir"/usr/share/man \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make prefix="$pkgdir"/usr install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="5bc87d494ba470aba54f6d2d51471834  libpaper_1.1.24.tar.gz"