# Maintainer: Colin Arnott 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 }