summaryrefslogtreecommitdiffstats
path: root/abs/core/ncid/PKGBUILD
blob: 867e9c45325c51d3429b0b446b0b44cc7eae18dd (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
pkgname=ncid
pkgver=0.89
pkgrel=1
pkgdesc="daemon to display callerid"
url="http://ncid.sourceforge.net/"
license=""
depends=(python2)
makedepends=()
conflicts=()
replaces=()
backup=()
arch=('i686' 'x86_64' )
install=ncid.install
#source=(http://voxel.dl.sourceforge.net/project/ncid/ncid/$pkgver/$pkgname-$pkgver-src.tar.gz  ncidd.conf ncid.conf ncid.py ncidpermissions.sql ncid.sql)
source=(http://downloads.sourceforge.net/project/ncid/ncid/$pkgver/$pkgname-$pkgver-src.tar.gz ncid-log.py ncidpermissions.sql ncid.sql ncid-linhes)
#must be built with -j 1
build() {
   cd $startdir/src/$pkgname
#  ./configure --prefix=/usr
  make clean
  make package  || return 1
  }
package(){
  cd $startdir/src/$pkgname
  #sed out MakeFILE

  sed  -i "s|^.*\$(MAKE) install prefix=/usr prefix2=|\t\$(MAKE) install prefix=${pkgdir}/usr prefix2=$pkgdir|" Makefile
  sed -i "s|/sbin$|/bin|" Makefile


  mkdir -p ${pkgdir}/etc
  make package-install
  install -m 755 $startdir/src/ncid-linhes $pkgdir/usr/share/ncid
  install -m 755  $startdir/src/ncid-log.py  $pkgdir/usr/bin/ncid-log.py
  install -m 755 -D  $startdir/src/ncid.sql  $pkgdir/tmp/ncid.sql
  install -m 755 -D $startdir/src/ncidpermissions.sql  $pkgdir/tmp/ncidpermissions.sql
  mv $pkgdir/usr/sbin/* $pkgdir/usr/bin 
  rmdir $pkgdir/usr/sbin
  chmod 777 $pkgdir/tmp
}
md5sums=('a19dfd40447503941db0e5f9ed4d8365'
         'd921bc210d5fa63855edd6c0e0102f68'
         '7655255b35a4fcdc0645c4f9018c1ed1'
         'b7a95f89fe5cb46e50ff25df7adc18b4'
         'abc3db9c6676b89081d5d412e46772a3')