aboutsummaryrefslogtreecommitdiffstats
path: root/testing/foomatic-db-engine/APKBUILD
blob: 1450b91633545cc4441336f26796baa89fa43ef0 (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: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=foomatic-db-engine
pkgver=4.0.8
pkgrel=0
pkgdesc="Tools for using the foomatic database of printers and printer drivers"
url="http://www.linuxprinting.org"
arch="all"
license="GPLv2+"
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="5283cd5125a96dc0b35d896326512b1a  foomatic-db-engine-4.0.8.tar.gz"