summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Arnott2017-12-10 03:26:19 +0000
committerColin Arnott2017-12-10 03:26:19 +0000
commit9e7b5f2d514861f2caa95cac1ebff3ee87d884fa (patch)
tree3ee765338a688bb14c1b3a1ec6ca8cbd2699d0cf
parent4f4ac25d05a213b5cf680924c020c761639af82b (diff)
downloadaur-9e7b5f2d514861f2caa95cac1ebff3ee87d884fa.tar.gz
add makedepends provides conflicts and check
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD19
2 files changed, 18 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0df905329d3..1c08c69c629 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,16 @@
# Generated by mksrcinfo v8
-# Tue Nov 14 08:59:55 UTC 2017
+# Sun Dec 10 03:25:50 UTC 2017
pkgbase = brlaser-git
pkgdesc = CUPS driver for the Brother DCP-7065DN
pkgver = v3.r24.gf1e0b2d
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/pdewacht/brlaser
arch = x86_64
license = GPL2
+ makedepends = git
depends = cups
+ provides = brlaser
+ conflicts = brlaser
source = brlaser-git::git+https://github.com/pdewacht/brlaser
sha512sums = SKIP
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
}