summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: c737a0580a013cd96119d86707853a9060a52b28 (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
# Maintainer: Colin Arnott <colin@urandom.co.uk>
pkgname="brlaser"
pkgver=6
pkgrel=2
pkgdesc="CUPS driver for Brother laser printers, with patch to lower block lines"
arch=('x86_64' 'armv7h')
url="https://github.com/pdewacht/brlaser"
license=('GPL2')
depends=('cups')
makedepends=('cmake')
source=("https://github.com/pdewacht/${pkgname}/archive/v${pkgver}.tar.gz"
    "lower-block-lines.patch")
b2sums=('be8041c1b6ddb8c4e5055fa35edc2c764562b2b4e52cad17aa968a51886621264d6bf289bd7bb5af0148098bb72aa96adea603091b38c3a245068d60737e80fc'
        '9500139bdc02c6c798749be5b761e52c65b37419ba3cdd6393d5f938db52e6df269861e636bb335a983a52d32f89f4280867b80150fb4d5d8994c05c49edcea6')

prepare() {
    msg2 "Applying block lines patch"
    patch -p1 -i ../lower-block-lines.patch
}

build() {
    cd "${pkgname}-${pkgver}"
    mkdir build
    cd build
    cmake -DCMAKE_BUILD_TYPE=Release ..
}

check() {
    cd "${pkgname}-${pkgver}/build"
    make -k check
}

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