diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 19 insertions, 10 deletions
@@ -1,27 +1,36 @@ # Maintainer: Colin Arnott <colin@urandom.co.uk> pkgname="brlaser" pkgver=6 -pkgrel=1 -pkgdesc="CUPS driver for the Brother DCP-7065DN" +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") -sha512sums=('d7e0e63b64be9ae7633381622c13ba0589e5fe58d277212bce4f5bb712a291ed0b0f2ac3d450dce61c7f9052c1ce7323fec66b5005c5cb3da1314b284d20f06f') +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}" - cmake . + cd "${pkgname}-${pkgver}" + mkdir build + cd build + cmake -DCMAKE_BUILD_TYPE=Release .. } check() { - cd "${pkgname}-${pkgver}" - make -k check + cd "${pkgname}-${pkgver}/build" + make -k check } package() { - cd "${pkgname}-${pkgver}" - make DESTDIR="$pkgdir/" install + cd "${pkgname}-${pkgver}/build" + make DESTDIR="$pkgdir/" install } |