[aur-general] Zaptel PKGBUILD

Collin adderd at kkmfg.com
Thu Feb 21 08:25:31 EST 2008


I've updated the PKGBUILD for Zaptel to the newest version (1.4.9) and 
also made it patch Zaptel to support Yeastar adapters in addition to 
it's standard range of support. I am not the package maintainer, just 
trying to help out. The PKGBUILD is below:



# $Id: PKGBUILD,v 1.10 2007/11/16 12:58:23 DaNiMoTh Exp $
# Maintainer: William Rea <sillywilly at gmail.com>
# Contributor: jeebusroxors

pkgname=zaptel
pkgver=1.4.9
pkgrel=1
pkgdesc="Zapatel Drivers for Asterisk"
arch=('i686' 'x86_64')
url="http://www.asterisk.org"
license=('GPL')
depends=('glibc')
backup=(etc/zaptel.conf)
source=(http://downloads.digium.com/pub/zaptel/zaptel-$pkgver.tar.gz \
        
http://www.yeastar.com/download/ystdm8xx-zaptel-$pkgver.patch.tar.gz \
        zaptel.rules zaptel.permissions ztcfg)
install=$pkgname.install
md5sums=('f08b8291eb0bccbec8e546c9fb43fd2e'
         '86c5ed9a652969566680cfa1e7c7c3ec'
         '3c53f516a7f9f50d53b2a073b15a257a'
         '7cd7c01cb9d0cfac44ce1a2949448310'
         '4bfb330e8e0a165e9212c4ad3f6d4eab')


build() {
  install -d $startdir/pkg/etc/udev $startdir/pkg/usr/share/man/man8
  patch -p0 < ystdm8xx-zaptel-$pkgver.patch
  cd $startdir/src/zaptel-$pkgver

  ./configure --prefix=/usr --sysconfdir=/etc --exec-prefix=/usr
  make VERBOSE=1 || return 1
  make DESTDIR=$startdir/pkg install || return 1
  make DESTDIR=$startdir/pkg config
  mkdir -p $startdir/pkg/usr/bin
  cp {fxotune,ztmonitor,zttest} $startdir/pkg/usr/bin
  rm -r $startdir/pkg/etc/udev

  install -D -m644 $startdir/src/zaptel.rules \
                   $startdir/pkg/etc/udev/rules.d/zaptel.rules

  install -D -m644 $startdir/src/zaptel.permissions \
                   $startdir/pkg/etc/udev/permissions.d/zaptel.permissions
  install -D -m755 ztcfg $startdir/pkg/sbin/ztcfg
  install -D -m755 $startdir/src/ztcfg \
                   $startdir/pkg/etc/rc.d/ztcfg
}






More information about the aur-general mailing list