aboutsummaryrefslogtreecommitdiffstats
path: root/testing/foomatic-db-engine/APKBUILD
blob: b049c912eb6fd3dfcda8c4ddda71d09c9bc843b6 (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
43
44
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=foomatic-db-engine
pkgver=4.0.9
pkgrel=0
pkgdesc="Tools for using the foomatic database of printers and printer drivers"
url="http://www.linuxprinting.org"
arch="all"
license="GPL2+"
depends="foomatic-filters"
depends_dev=""
makedepends="perl-dev libxml2-dev cups-dev ghostscript-dev"
install=""
subpackages="$pkgname-doc"
source="http://www.openprinting.org/download/foomatic/foomatic-db-engine-$pkgver.tar.gz"

_builddir="$srcdir"/foomatic-db-engine-$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
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		|| return 1
	make || return 1
}

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

md5sums="5b33c1adb21e7b6f3652e9a18d0e6f4e  foomatic-db-engine-4.0.9.tar.gz"
sha256sums="7c9ef1c8e934de1b0e37104570d6b1ff8ea349f3ed6d965397b7c94449122f44  foomatic-db-engine-4.0.9.tar.gz"
sha512sums="37e192ba5eccedf653684781c503ca0a2eed5f111799ff07a3dd419dd3049f2ae9a7ee21e921a79732cc178ae52c69f25ffac2f5761665871fec520d7b64f2e8  foomatic-db-engine-4.0.9.tar.gz"