summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 13 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3c5a5690140..1e68a8a0de9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,40 @@
# Maintainer: Colin Arnott <colin@urandom.co.uk>
pkgname="brlaser-git"
pkgver=v3.r24.gf1e0b2d
-pkgrel=1
+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"
+ cd $pkgname
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
- cd "$pkgname"
+ cd $pkgname
./autogen.sh
./configure --prefix=/usr
}
build() {
- cd "$pkgname"
+ cd $pkgname
make
}
+check() {
+ cd $pkgname
+ make -k check
+}
+
package() {
- cd "$pkgname"
+ cd $pkgname
make DESTDIR="$pkgdir/" install
}