summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAndré Klitzing2015-06-08 22:11:38 +0200
committerAndré Klitzing2015-06-08 22:11:38 +0200
commit3e20f6e09f7e271151313e3b659d93eeda5c377a (patch)
treebdc20ac5a9153ecd4f21217ded9459e911735031 /PKGBUILD
downloadaur-3e20f6e09f7e271151313e3b659d93eeda5c377a.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3c9bbd3956d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Contributor: Andre Klitzing <andre () incubo () de>
+
+pkgname=epson-inkjet-printer-l100l200
+_pkgname_filter=epson-inkjet-printer-filter
+_suffix=1lsb3.2.src.rpm
+pkgver=1.0.0
+pkgrel=8
+pkgdesc="Epson printer driver (L100, L200)"
+arch=('i686' 'x86_64')
+url="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+license=('LGPL' 'custom:Epson Licence Agreement')
+depends=('cups' 'ghostscript')
+#makedepends=('libtool' 'make' 'automake' 'autoconf')
+source=(http://download.ebz.epson.net/dsc/op/stable/SRPMS/${pkgname}-${pkgver}-${_suffix})
+
+build() {
+ cd "$srcdir"
+ tar xzf $pkgname-$pkgver.tar.gz
+ FILTER_FILE=`ls $_pkgname_filter*.tar.gz`
+ tar xzf $FILTER_FILE
+
+ cd "${FILTER_FILE%.tar.gz}"
+ aclocal
+ libtoolize
+ chmod +x configure
+ # if you have runtime problems: add "--enable-debug" and look into /tmp/epson-inkjet-printer-filter.txt
+ ./configure LDFLAGS="$LDFLAGS -Wl,--no-as-needed" --prefix=/opt/$pkgname
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ install -d "$pkgdir/opt/$pkgname/"
+ if [ "$CARCH" = "x86_64" ]; then
+ cp -a --no-preserve=mode lib64 "$pkgdir/opt/$pkgname/"
+ else
+ cp -a --no-preserve=mode lib "$pkgdir/opt/$pkgname/"
+ fi
+ cp -a --no-preserve=mode resource "$pkgdir/opt/$pkgname/"
+
+ if [ -e "watermark" ]; then
+ cp -a --no-preserve=mode watermark "$pkgdir/opt/$pkgname/"
+ fi
+ install -d "$pkgdir/usr/share/cups/model/$pkgname"
+ install -m 644 ppds/* "$pkgdir/usr/share/cups/model/$pkgname"
+
+ cd "$srcdir"
+ FILTER_FILE=`ls $_pkgname_filter*.tar.gz`
+ cd "${FILTER_FILE%.tar.gz}"
+ install -d "$pkgdir/opt/$pkgname/cups/lib/filter/"
+ install -m 755 src/epson_inkjet_printer_filter "$pkgdir/opt/$pkgname/cups/lib/filter/epson_inkjet_printer_filter"
+}
+sha256sums=('6acf28a25e4af7e62b0d12d7f4a570dfd284ed61b6d0d28aa7be50f71ed600c6')