updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / dahdi-tools / PKGBUILD
blobc5b19009536ec572ec5643493288f3f53cac1c5f
1 # Contributor: Jonathan Liu <net147@hotmail.com>
2 pkgname=dahdi-tools
3 pkgver=2.5.0.2
4 _realpkgver=${pkgver/_/-}
5 pkgrel=1
6 pkgdesc="DAHDI tools for Asterisk"
7 arch=('i686' 'x86_64')
8 url="http://www.asterisk.org/"
9 license=('GPL2')
10 depends=('dahdi' 'libnewt' 'libusb' 'perl')
11 backup=('etc/dahdi/genconf_parameters' 'etc/dahdi/system.conf')
12 source=("http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/${pkgname}-${_realpkgver}.tar.gz"
13         "dahdi_cfg")
14 md5sums=('64debed091e35f6013f0797fd07ce9df'
15          '926126dafe5dee8beeabdcb3a71efd0b')
17 build() {
18   cd "${srcdir}/${pkgname}-${_realpkgver}"
19   ./configure --prefix=/usr
20   make
23 package() {
24   cd "${srcdir}/${pkgname}-${_realpkgver}"
25   make DESTDIR="${pkgdir}" install
26   install -D -m755 "${srcdir}"/dahdi_cfg "${pkgdir}"/etc/rc.d/dahdi_cfg
27   install -D -m644 xpp/genconf_parameters "${pkgdir}"/etc/dahdi/genconf_parameters
30 # vim:set ts=2 sw=2 et: