aboutsummaryrefslogtreecommitdiffstats
path: root/main/brlaser/APKBUILD
blob: fd2eb822623fb0023689654c3e9b8f91ae7d04f6 (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
46
47
48
49
50
51
52
53
# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=brlaser
pkgver=3
pkgrel=0
pkgdesc="Driver for Brother printers like the DCP 7030 and DCP 7065"
url="http://github.com/pdewacht/brlaser"
arch="all"
license="GPL2+"
depends="cups-filters"
depends_dev=""
makedepends="$depends_dev cups-dev automake autoconf"
install=""
subpackages="$pkgname-doc"
source="brlaser-$pkgver.tar.gz::https://github.com/pdewacht/brlaser/archive/v$pkgver.tar.gz
	9.patch"

_builddir="$srcdir"/brlaser-$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"
	./autogen.sh \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="89bc6a86770baa06aa96f21e588819ee  brlaser-3.tar.gz
ecce9fbc01c2667c1a8cee7cc0eab54a  9.patch"
sha256sums="495059a3b93c9c7106f2f72b2d646b0ee794a6527120a8936cd493752250b2ee  brlaser-3.tar.gz
d58a70ea5427200510ef6da85d2e77e093fd9b535d9e504a48032659828286c8  9.patch"
sha512sums="79c4709e0db48fc4b359297f44c2ad35633e65210fdb941aea7a9a613de4d341319aaa7e72748f7ed821400c564b9a5c63677692103130e3a6ec5ff938e0cccf  brlaser-3.tar.gz
f1c75804c37fb2b4ad200aea185a96f780245da9a858e2afaf435fbe8e8a57a4cc2d2665b8d07ab12e13fa66943f446dd1a2409f2e6e0ebc591a4ca15f331a98  9.patch"