diff options
author | b3niup | 2020-02-20 16:08:36 +0100 |
---|---|---|
committer | b3niup | 2020-02-20 16:08:36 +0100 |
commit | 80a3562c82de958abb5860e2c4acfa5378785a0e (patch) | |
tree | 058dffc1207f0ac47922d99f01a1a7de9698367a /PKGBUILD | |
download | aur-80a3562c82de958abb5860e2c4acfa5378785a0e.tar.gz |
Initial commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..26fa8a59a7c6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Benedykt 'b3niup' PrzybyĆo <b3niup@gmail.com> +# based on brother-hll2300d by Mykola Bespaliuk (kolkabes [at] gmail [dot] com) +pkgname=brother-hll2310d +pkgver=4.0.0 +pkgrel=1 +pkgdesc="Brother HL-L2310D CUPS driver" +url="http://www.brother.com" +arch=('x86_64' 'i686') +depends=('perl' 'bash' 'ghostscript') +license=('custom:Brother') +source=( + https://download.brother.com/welcome/dlf103531/hll2310dpdrv-${pkgver}-${pkgrel}.i386.rpm +) +md5sums=( + '786ededd9b19d559dcb49160bb81c8a2' +) + +if [[ "$CARCH" == "x86_64" ]]; then + depends+=('lib32-glibc') +fi + +package() { + mkdir -p "${pkgdir}/opt" + cp -R "${srcdir}/opt/brother" "${pkgdir}/opt/brother" + + cd ${pkgdir}/opt/brother/Printers/HLL2310D/lpd + for i in brprintconflsr3 rawtobr3; do ln -s ${CARCH}/$i .; done + cd - + mkdir -p "${pkgdir}/usr/lib/cups/filter" + echo "#! /opt/brother/Printers/HLL2310D/cupswrapper/lpdwrapper" > "${srcdir}/filter-shim" + install -m 0755 -o root -g root "${srcdir}/filter-shim" "${pkgdir}/usr/lib/cups/filter/brother_lpdwrapper_HLL2310D" + + mkdir -p "${pkgdir}/usr/share/ppd/cupsfilters" + install -m 0644 -o root -g root "${srcdir}/opt/brother/Printers/HLL2310D/cupswrapper/brother-HLL2310D-cups-en.ppd" "${pkgdir}/usr/share/ppd/cupsfilters" +} + |