aboutsummaryrefslogtreecommitdiffstats
path: root/testing/foomatic-db-engine/APKBUILD
blob: ff48c353ac6011c15195b039832acc1869d53a6e (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
45
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=foomatic-db-engine
pkgver=4.0.12
pkgrel=0
pkgdesc="Tools for using the foomatic database of printers and printer drivers"
url="http://www.linuxprinting.org"
arch="all"
license="GPL2+"
depends="cups-filters perl"
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"
	# avoid #!/bin/bash in foomatic-getpjloptions
	SH=/bin/sh ./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="b8049e61a3dad76044e83dde0087e0a0  foomatic-db-engine-4.0.12.tar.gz"
sha256sums="66143b76ed5b325b7025e261ad917b543de534c6d0a6e495d5489a20cace7c21  foomatic-db-engine-4.0.12.tar.gz"
sha512sums="b7e99ace6a632e9b0213183bd2c6c2d11ca072ea0414e8ca569082b7ec183dd81c80594ad63fdee82d761ae36d4fce9d3c881569a95a6085ec326ef7fd21154f  foomatic-db-engine-4.0.12.tar.gz"