# vim: set syn=sh: # Packager: Phill Watkins pkgname=epson-inkjet-printer-stylus-photo-px810fw-series pkgver=1.0.0 pkgrel=1pw #arch=noarch source=\ ( "http://linux.avasys.jp/drivers/lsb/epson-inkjet/stable/SRPMS/$pkgname-$pkgver-1lsb3.2.src.rpm" "http://linux.avasys.jp/drivers/lsb/epson-inkjet/stable/RPMS/i486/$pkgname-$pkgver-1lsb3.2.i486.rpm" "http://linux.avasys.jp/drivers/lsb/epson-inkjet/stable/RPMS/x86_64/$pkgname-$pkgver-1lsb3.2.x86_64.rpm" ) sourcetemplate=http://people.salixos.org/pwatk/packages/extra/$pkgname #docs=() url=http://avasys.jp/english/linux_e/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "epson-inkjet-printer-stylus-photo-px810fw-series" "This software is a filter program used with the Common UNIX Printing" "System (CUPS)." "" "This driver supports the following printers:" "Artisan 710 / 810" "Epson Stylus Photo PX710W / PX810FW / TX710W / TX810FW." ) build() { set -e cd $startdir/src rpm2cpio $pkgname-$pkgver-1lsb3.2.src.rpm | cpio -idmv tar xzf $pkgname-$pkgver.tar.gz tar xzf epson-inkjet-printer-filter-$pkgver.tar.gz rpm2cpio $pkgname-$pkgver-1lsb3.2.$arch.rpm | cpio -idmv install -d $startdir/pkg/usr/doc/$pkgname-$pkgver cd $startdir/src/epson-inkjet-printer-filter-$pkgver autoreconf -f -i chmod +x configure ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --infodir=/usr/info \ --docdir=/usr/doc/$pkgname-$pkgver \ --build=$arch-slackware-linux \ --disable-static sed -e "/CORE_RESOURCE_PATH/s|/usr/resource|/usr/share/$pkgname/resource|" -i config.h make -j $numjobs install -Dm 0755 src/epson_inkjet_printer_filter $startdir/pkg/usr/lib${LIBDIRSUFFIX}/cups/filter/epson_inkjet_printer_filter cp -a AUTHORS ChangeLog COPYING* INSTALL NEWS $startdir/pkg/usr/doc/$pkgname-$pkgver cd $startdir/src/$pkgname-$pkgver install -d $startdir/pkg/usr/share/$pkgname/{resource,watermark} install -m 0644 resource/* $startdir/pkg/usr/share/$pkgname/resource/ install -m 0644 watermark/* $startdir/pkg/usr/share/$pkgname/watermark/ for ppd in ppds/* ;do sed \ -e "s|/opt/$pkgname/cups/lib/filter|/usr/lib${LIBDIRSUFFIX}/cups/filter|g" \ -e "s|/opt/$pkgname/watermark|/usr/share/$pkgname/watermark|g" \ -i $ppd done install -d $startdir/pkg/usr/share/cups/model/Epson/ install -m 0644 ppds/* $startdir/pkg/usr/share/cups/model/Epson/ gzip -9 $startdir/pkg/usr/share/cups/model/Epson/* cp -a Manual.txt README $startdir/pkg/usr/doc/$pkgname-$pkgver cd $startdir/src/opt/$pkgname install -m 0644 lib${LIBDIRSUFFIX}/* $startdir/pkg/usr/lib${LIBDIRSUFFIX}/ set +e }