summaryrefslogtreecommitdiffstats
path: root/foo2zjs/PKGBUILD
blob: 16267333833466c806bbc90e3d4a2c5a91def5bf (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
37
38
39
40
41
42
43
44
45
# Contributor: Giovanni Scafora <giovanni@archlinux.org>

pkgname=foo2zjs
pkgver=20091017
pkgrel=3
pkgdesc="ZJStream Printer Drivers."
url="http://foo2zjs.rkkda.com/"
license=('GPL' 'custom')
depends=('psutils' 'cups' 'foomatic-db-engine')
makedepends=('unzip')
conflicts=('foomatic-db')
optdepends=('tix: required by hplj10xx_gui.tcl')
arch=('i686' 'x86_64')
options=('!emptydirs')
install=foo2zjs.install
source=(http://foo2zjs.rkkda.com/foo2zjs.tar.gz
        foo2zjs-20091017-Makefile.patch
        foo2zjs-20091017-udevfwld.patch)
md5sums=('66413683916d4103d9bd1068b6fc2da6'
         'b5584b05d86f5587fa9d635956dd40c6'
         'd547a4f67d91f96a58ae2d565f54210e')

build() {
  cd "${srcdir}/${pkgname}"
  patch -Np1 -i ${srcdir}/foo2zjs-20091017-Makefile.patch || return 1
  patch -Np1 -i ${srcdir}/foo2zjs-20091017-udevfwld.patch || return 1
  
  make || return 1

  ./getweb 315 || return 1

  install -d ${pkgdir}/usr/share/{applications,pixmaps,cups/model}
  install -d ${pkgdir}/usr/share/foomatic/db/source/{driver,opt,printer}

  make DESTDIR=${pkgdir} install install-udev

  install -m755 getweb ${pkgdir}/usr/bin
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
md5sums=('303d7849dcbfbe89d12b1cf30351500d'
         'b5584b05d86f5587fa9d635956dd40c6'
         'd547a4f67d91f96a58ae2d565f54210e')
sha1sums=('dd9256ae008e16e7b0f9eddce787ff13fe82c1f6'
          '2154a87f53fc0b9a899511fcf3ed88eb38757427'
          '12eb107069b61ff2d702dcfacb033d8e251da057')