summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc4a4c3ce40d5d268a3def97f53ab8f7c7a235c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Peter Pickford <arch@netremedies.ca>
# Contributor: Peter Pickford <arch@netremedies.ca>

pkgname=vocp
pkgver=0.9.3
pkgrel=1
pkgdesc="VOCP is a complete messaging solution for voice modems, with voicemail, fax, email pager, DTMF command shell and Text-to-Speech support, 3 GUIs and a web interface. Send and receive faxes and voicemail, listen to emails and execute programs on the host."
url="http://vocp.psychogenic.net/index.php?mode=function"
license=('GPL')
arch=('i686' 'x86_64')
depends=('mgetty-vgetty' 'perl-audio-dsp' 'perl-crypt-blowfish' 'perl-crypt-cbc' 'perl-mime-tools' 'perl-tk' 'perl-xml-mini' 'perl-modem-vgetty' 'lame' )
conflicts=('mgetty')
makedepends=('make' 'perl')
install='vocp.install'
source=( 'http://www.mirrorservice.org/sites/downloads.sourceforge.net/v/vo/vocp/VOCP/0.9.3/VOCP-0.9.3.tar.gz'
#sourceforge is down :(
#'http://prdownloads.sourceforge.net/vocp/VOCP-0.9.3.tar.bz2'
        'convert_sound.pl'
        'install_vocp.pl'
        'config.patch'
	)
md5sums=('07cf78ff95fce34d75dfc641b134a349'
         'b6d69da8f3221d7d51e3be4d2c067c00'
         '3abd17fdd551aee139b8f40efd7a93a0'
         '0ac9ce4ef610f6f8b5d480d07c3a2891')

build(){
  cd "$srcdir/$pkgname-$pkgver"
  patch -Np0 -i ../../config.patch || return 1
  cd "$srcdir/$pkgname-$pkgver/prog/VOCP"

  # Install module in vendor directories.
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}
check(){
  cd "$srcdir/$pkgname-$pkgver/prog/VOCP"
  #make test
}
package(){
  cd "$srcdir/$pkgname-$pkgver/"
  $srcdir/install_vocp.pl "$pkgdir/"
  cd "$srcdir/$pkgname-$pkgver/prog/VOCP"
  
  make install DESTDIR="$pkgdir/"
  # remove perllocal.pod and .packlist
  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
  install -D -m555 $srcdir/convert_sound.pl $pkgdir/usr/local/vocp/bin/convert_sound.pl
}