updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / epson-inkjet-printer-ep-803a-903f-series / PKGBUILD
blob9b36729663b3d44352db6a415e01781c6d7b95e1
1 # Contributor: Andre Klitzing <andre () incubo () de>
3 pkgname=epson-inkjet-printer-ep-803a-903f-series
4 _pkgname_filter=epson-inkjet-printer-filter
5 pkgver=1.0.1
6 pkgrel=6
7 pkgdesc="Epson printer driver (EP-803A, EP-803AW, EP-903A, EP-903F, EP-774A)"
8 arch=('i686' 'x86_64')
9 url="http://avasys.jp/eng/linux_driver/download/lsb/epson-inkjet/escp/"
10 license=('GPL' 'LGPL' 'custom:AVASYS Public Licence')
11 depends=('cups')
12 makedepends=('rpmextract' 'libtool' 'make' 'automake' 'autoconf')
13 source=(http://linux.avasys.jp/drivers/lsb/epson-inkjet/stable/SRPMS/$pkgname-$pkgver-1lsb3.2.src.rpm)
15 build() {
16   cd "$startdir/src"
17   rpmextract.sh $pkgname-$pkgver-1lsb3.2.src.rpm || return 1
18   tar xzf $pkgname-$pkgver.tar.gz || return 1
19   FILTER_FILE=`ls $_pkgname_filter*.tar.gz`
20   tar xzf $FILTER_FILE || return 1
22   cd "${FILTER_FILE%.tar.gz}"
23   aclocal
24   libtoolize
25   chmod +x configure
26   # if you have runtime problems: add "--enable-debug" and look into /tmp/epson-inkjet-printer-filter.txt
27   ./configure LDFLAGS="$LDFLAGS -Wl,--no-as-needed" --prefix=/opt/$pkgname || return 1
28   make || return 1
31 package() {
32   cd "$srcdir/$pkgname-$pkgver"
33   install -d "$pkgdir/opt/$pkgname/"
34   if [ "$CARCH" = "x86_64" ]; then
35      cp -r lib64 "$pkgdir/opt/$pkgname/"
36   else
37      cp -r lib "$pkgdir/opt/$pkgname/"
38   fi
39   cp -r resource "$pkgdir/opt/$pkgname/"
41   if [ -e "watermark" ]; then
42       cp -r watermark "$pkgdir/opt/$pkgname/"
43   fi
44   install -d "$pkgdir/usr/share/cups/model/$pkgname"
45   install -m 644 ppds/* "$pkgdir/usr/share/cups/model/$pkgname"
47   cd "$srcdir"
48   FILTER_FILE=`ls $_pkgname_filter*.tar.gz`
49   cd "${FILTER_FILE%.tar.gz}"
50   install -d "$pkgdir/opt/$pkgname/cups/lib/filter/"
51   install -m 755 src/epson_inkjet_printer_filter "$pkgdir/opt/$pkgname/cups/lib/filter/epson_inkjet_printer_filter"
53 sha256sums=('b40549bf071c461a6373b8bfac72046470e93f85fffb3881e99fe161e39fd202')