updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / fax4cups / PKGBUILD
blob52e3a66a0bef6b96ad37b2e788b5ffca6e7345a0
1 pkgname=fax4cups
2 pkgver=1.28
3 pkgrel=1
4 pkgdesc="A simple shell script that acts as a CUPS backend for a serial faxmodem."
5 arch=(i686)
6 url="http://vigna.dsi.unimi.it/fax4CUPS/"
7 depends=('cups' 'grep' 'sudo')
8 source=(http://vigna.dsi.unimi.it/fax4CUPS/fax4CUPS-${pkgver}.tar.gz)
9 md5sums=('91280357f84789b9210397294c078242')
10 install=fax4cups.install
12 build() {
13   cd ${startdir}/src/fax4CUPS-${pkgver}
15   sed -i -e 's|sysconfig/fax|cups/efax-backend.conf|g' *
17   install -D -m644 fax4CUPS.1 ${startdir}/pkg/usr/man/man1/fax4CUPS.1
19   for FAXBACKEND in capisuite-fax efax hylafax mgetty-fax
20   do
21     install -D $FAXBACKEND ${startdir}/pkg/usr/lib/cups/backend/${FAXBACKEND}
22   done
24   for FAXMODEL in capisuite-fax.ppd efax.ppd hylafax.ppd mgetty-fax.ppd
25   do
26     install -D -m644 $FAXMODEL ${startdir}/pkg/usr/share/cups/model/${FAXMODEL}
27   done