diff options
author | Colin Arnott <colin@urandom.co.uk> | 2017-12-10 03:29:17 +0000 |
---|---|---|
committer | Colin Arnott <colin@urandom.co.uk> | 2017-12-10 03:29:17 +0000 |
commit | 05d01e24fb6ef196e68e6c8052962fd611a5333f (patch) | |
tree | ca27c5a706b4bd9a8ccc714f3750804ff8a5b39d | |
download | brlaser-05d01e24fb6ef196e68e6c8052962fd611a5333f.tar.xz |
init
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | 0001-Add-missing-include-string.patch | 24 | ||||
-rw-r--r-- | PKGBUILD | 33 |
4 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..d4ef5d6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# Sun Dec 10 03:28:31 UTC 2017 +pkgbase = brlaser + pkgdesc = CUPS driver for the Brother DCP-7065DN + pkgver = 3 + pkgrel = 1 + url = https://github.com/pdewacht/brlaser + arch = x86_64 + license = GPL2 + depends = cups + source = https://github.com/pdewacht/brlaser/archive/v3.tar.gz + source = 0001-Add-missing-include-string.patch + sha512sums = 79c4709e0db48fc4b359297f44c2ad35633e65210fdb941aea7a9a613de4d341319aaa7e72748f7ed821400c564b9a5c63677692103130e3a6ec5ff938e0cccf + sha512sums = 51f21653433adf2ba564aaee4fdda4c99132e8ffa802562f282d75a7d3d2ab61ff0a9b574164ba7e67b739595836960836668fe618b3961d0ea83dcf09536cc0 + +pkgname = brlaser + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f71c635 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/0001-Add-missing-include-string.patch b/0001-Add-missing-include-string.patch new file mode 100644 index 0000000..d529fd7 --- /dev/null +++ b/0001-Add-missing-include-string.patch @@ -0,0 +1,24 @@ +From 93138fec87290ffbdd4919f313ea513eadca749c Mon Sep 17 00:00:00 2001 +From: Peter Spiess-Knafl <dev@spiessknafl.at> +Date: Mon, 25 Apr 2016 15:02:37 +0200 +Subject: [PATCH] Add missing #include <string> + +--- + src/brdecode.cc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/brdecode.cc b/src/brdecode.cc +index d5c4c0d..bcd3ec7 100644 +--- a/src/brdecode.cc ++++ b/src/brdecode.cc +@@ -21,6 +21,7 @@ + #include <algorithm> + #include <exception> + #include <vector> ++#include <string> + + namespace { + +-- +2.15.1 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..3ab46e3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Colin Arnott <colin@urandom.co.uk> +pkgname="brlaser" +pkgver=3 +pkgrel=1 +pkgdesc="CUPS driver for the Brother DCP-7065DN" +arch=('x86_64') +url="https://github.com/pdewacht/brlaser" +license=('GPL2') +depends=('cups') +source=("https://github.com/pdewacht/${pkgname}/archive/v${pkgver}.tar.gz" "0001-Add-missing-include-string.patch") +sha512sums=('79c4709e0db48fc4b359297f44c2ad35633e65210fdb941aea7a9a613de4d341319aaa7e72748f7ed821400c564b9a5c63677692103130e3a6ec5ff938e0cccf' '51f21653433adf2ba564aaee4fdda4c99132e8ffa802562f282d75a7d3d2ab61ff0a9b574164ba7e67b739595836960836668fe618b3961d0ea83dcf09536cc0') + +prepare() { + cd "${pkgname}-${pkgver}" + patch -p1 < $srcdir/${source[1]} +} + +build() { + cd "${pkgname}-${pkgver}" + ./autogen.sh + ./configure --prefix=/usr + make +} + +check() { + cd "${pkgname}-${pkgver}" + make -k check +} + +package() { + cd "${pkgname}-${pkgver}" + make DESTDIR="$pkgdir/" install +} |