summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Klitzing2015-06-08 18:41:24 +0200
committerAndré Klitzing2015-06-08 18:41:24 +0200
commit1e6ff01eb9d5db8a343d78f6505c3909cff97c95 (patch)
tree6e37dc7c73cb4eeffdb79094dddde1cfd39790af
downloadaur-1e6ff01eb9d5db8a343d78f6505c3909cff97c95.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD53
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f2a966769a2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = epson-inkjet-printer-201213w
+ pkgdesc = Epson printer driver (WP-M4011, WP-M4015, WP-M4095, WP-M4521, WP-M4525, WP-M4595)
+ pkgver = 1.0.0
+ pkgrel = 8
+ url = http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ license = custom:Epson Licence Agreement
+ depends = cups
+ depends = ghostscript
+ source = http://download.ebz.epson.net/dsc/op/stable/SRPMS/epson-inkjet-printer-201213w-1.0.0-1lsb3.2.src.rpm
+ sha256sums = 45114c018b33c35259e6ac0fb762f92b05ca2d30ff76b34c069cd5a461f1f5df
+
+pkgname = epson-inkjet-printer-201213w
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..30bf02a13d9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Contributor: Andre Klitzing <andre () incubo () de>
+
+pkgname=epson-inkjet-printer-201213w
+_pkgname_filter=epson-inkjet-printer-filter
+_suffix=1lsb3.2.src.rpm
+pkgver=1.0.0
+pkgrel=8
+pkgdesc="Epson printer driver (WP-M4011, WP-M4015, WP-M4095, WP-M4521, WP-M4525, WP-M4595)"
+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=('45114c018b33c35259e6ac0fb762f92b05ca2d30ff76b34c069cd5a461f1f5df')