# Maintainer (Arch): Dan Serban
# Contributors (Arch): David Zaragoza, Andrea Scarpino
# Maintainer: André Silva <emulatorman@parabola.nu>

pkgname=sipwitch
pkgver=1.2.4
pkgrel=2
pkgdesc="A call and registration server for the SIP protocol"
arch=(i686 x86_64 mips64el)
url=http://www.gnutelephony.org/index.php/GNU_SIP_Witch
license=(GPL)
depends=(libexosip2 ucommon)
makedepends=(lynx)
options=('!libtool')
source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('6119cecb062ba4d0af18b427b01c41e2')

build()
{
  cd "${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make
}

package()
{
  cd "${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  mkdir -p "${pkgdir}"/etc/rc.d
  touch "${pkgdir}"/etc/rc.d/"${pkgname}"
}