1 # Contributor: Andrwe <lord-weber-andrwe at renona-studios.org>
2 pkgname=epson-alcx11-filter
3 pkgsrcname=Epson-ALCX11-filter
6 pkgdesc="Cups filter for printer Epson AcuLaser CX11(NF)"
8 url="http://www.avasys.jp/lx-bin2/linux_e/mfp/DL1.do"
9 license=('EAPL (EPSON AVASYS Public License)')
10 source=(http://lx1.avasys.jp/lpf/alcx11.1/Epson-ALCX11-filter-1.1.tar.gz)
11 depends=('cups>=1.1.17' 'ghostscript' 'psutils' 'glibc' 'sed' 'grep' 'gawk' 'bc' 'libstdc++5' 'foomatic-filters>=3')
12 [ "$CARCH" == "x86_64" ] && depends=( 'bc' 'cups>=1.1.17' 'foomatic-filters>=3' 'gawk' 'ghostscript' 'glibc' 'grep' 'lib32-readline' 'lib32-libstdc++5' 'psutils' 'sed' )
13 makedepends=('intltool' 'sed')
16 md5sums=('d34baebfa6632121b8f6d6464ba0c2e4')
19 cd ${srcdir}/$pkgsrcname-$pkgver
20 sed -e "s/numcopies=\$((Copies))/numcopies=\$((\$Copies))/" ./pstoalcx11.sh > ./pstoalcx11.sh_sed
21 sed -e "s/numcopies=\$((numcopies -1))/numcopies=\$((\$numcopies -1))/" ./pstoalcx11.sh_sed > ./pstoalcx11.sh
22 sed -e "s/page=\$((page +1))/page=\$((\$page +1))/" ./pstoalcx11.sh > ./pstoalcx11.sh_sed
23 mv ./pstoalcx11.sh_sed ./pstoalcx11.sh
24 ./configure --prefix=/usr || return 1
26 make DESTDIR=${pkgdir} install