summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e68a8a0de97204d9320c71c3b56d32b3dff2d6d (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
# Maintainer: Colin Arnott <colin@urandom.co.uk>
pkgname="brlaser-git"
pkgver=v3.r24.gf1e0b2d
pkgrel=2
pkgdesc="CUPS driver for the Brother DCP-7065DN"
arch=('x86_64')
url="https://github.com/pdewacht/brlaser"
license=('GPL2')
depends=('cups')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url")
sha512sums=('SKIP')

pkgver() {
	cd $pkgname
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
	cd $pkgname
	./autogen.sh
	./configure --prefix=/usr
}

build() {
	cd $pkgname
	make
}

check() {
	cd $pkgname
	make -k check
}

package() {
	cd $pkgname
	make DESTDIR="$pkgdir/" install
}