# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpaper
pkgver=1.1.24
_pkgver=${pkgver}+nmu4
pkgrel=3
pkgdesc="Library for handling paper characteristics"
url="http://packages.debian.org/unstable/source/libpaper"
arch="all"
license="GPL"
subpackages="$pkgname-dev $pkgname-doc"
depends=""
makedepends=""
source="http://ftp.debian.org/debian/pool/main/libp/libpaper/libpaper_${_pkgver}.tar.gz"

builddir="$srcdir"/$pkgname-$_pkgver

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
}

md5sums="155d2e589e2f4ef163de8fbbc5d3dd1e  libpaper_1.1.24+nmu4.tar.gz"
sha256sums="2491fce3f590d922d2d3070555df4425921b89c76a18e1c62e36336d6657526a  libpaper_1.1.24+nmu4.tar.gz"
sha512sums="4412139ffab7b9658f186a825c7d4ae3ba397ff32852a66decccef7b74647dd365573b9f00145fe2fa95dd16e30c280a8aeeac90a14006ed140f5b85e2f0e508  libpaper_1.1.24+nmu4.tar.gz"
