You are not logged in.

#1 2007-04-26 01:41:37

loserMcloser
Member
From: Canada
Registered: 2004-12-15
Posts: 130

[PKGBUILD] fax4cups

PKGBUILD

pkgname=fax4cups
pkgver=1.28
pkgrel=1
pkgdesc="A simple shell script that acts as a CUPS backend for a serial faxmodem."
arch=(i686)
url="http://vigna.dsi.unimi.it/fax4CUPS/"
depends=('cups' 'grep' 'sudo')
source=(http://vigna.dsi.unimi.it/fax4CUPS/fax4CUPS-${pkgver}.tar.gz)
md5sums=('91280357f84789b9210397294c078242')
install=fax4cups.install

build() {
  cd ${startdir}/src/fax4CUPS-${pkgver}

  sed -i -e 's|sysconfig/fax|cups/efax-backend.conf|g' *

  install -D -m644 fax4CUPS.1 ${startdir}/pkg/usr/man/man1/fax4CUPS.1

  for FAXBACKEND in capisuite-fax efax hylafax mgetty-fax
  do
    install -D $FAXBACKEND ${startdir}/pkg/usr/lib/cups/backend/${FAXBACKEND}
  done

  for FAXMODEL in capisuite-fax.ppd efax.ppd hylafax.ppd mgetty-fax.ppd
  do
    install -D -m644 $FAXMODEL ${startdir}/pkg/usr/share/cups/model/${FAXMODEL}
  done
}

fax4cups.install

post_upgrade() {
  cat << _EOF
  ==>
  ==> NOTE: Since version 1.27, the obsolete fax backend has been
  ==>       replaced by the efax backend. If you are still using the
  ==>       fax backend, you should delete your printer and create a
  ==>       new one.
  ==>
  ==> To make use of this CUPS backend, you need one of the following:
  ==>    efax         (pacman -S efax)
  ==>    hylafax      (pacman -S hylafax)
  ==>    mgetty-fax   (http://www.leo.org/~doering/mgetty/index.html)
  ==>    CapiSuite    (http://www.capisuite.de/)
  ==>
  ==> Some configuration for the efax backend can be done in
  ==>   /etc/cups/efax-backend.conf
  ==> see 'man fax4CUPS' for details.
  ==>
  ==> Remember to restart cups after installing.
  ==>
_EOF
}

op=$1
shift
$op $*

Offline

#2 2007-04-26 06:12:32

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [PKGBUILD] fax4cups

Ideally, PKGBUILD should be submitted to AUR instead of being posted in the forums.

Offline

#3 2007-04-26 17:12:24

loserMcloser
Member
From: Canada
Registered: 2004-12-15
Posts: 130

Re: [PKGBUILD] fax4cups

Well, I don't really want to maintain an entry in AUR, so I'm just putting this PKGBUILD out there.

Offline

#4 2007-04-26 17:44:45

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [PKGBUILD] fax4cups

loserMcloser wrote:

Well, I don't really want to maintain an entry in AUR, so I'm just putting this PKGBUILD out there.

In that case, you could orphan the package after submitting it.  Nowadays, users search the AUR for packages and, if it would be in AUR, they could adopt/vote for the package. In the forum, the PKGBUILD risk being buried in the newer posts.

BTW, the license field is missing.

Offline

Board footer

Powered by FluxBB