updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ccnx / PKGBUILD
blob113f5974f4b4c9972febbaf0ac2710f320df845c
1 # Maintainer: Andreas B. Wagner <AndreasBWagner@pointfree.net>
2 pkgname=ccnx
3 pkgver=0.4.2
4 pkgrel=1
5 pkgdesc="an experimental implementation of content-centric networking"
6 arch=('i686' 'x86_64')
7 url="http://www.ccnx.org"
8 license=('GPLv2' 'LGPLv2.1')
9 #depends=('openssl' 'expat' 'libpcap' 'libxml2' 'apache-ant' 'java-environment=6' 'java-runtime=6' 'athena-jot')
10 provides=('ccnx')
11 conflicts=('ccnx')
12 options=('zipman')
13 #source=("http://dl.dropbox.com/u/29164727/$pkgname-$pkgver.tar.gz")
14 source=("http://www.ccnx.org/releases/$pkgname-$pkgver.tar.gz")
15 md5sums=('0c66e7102632f986176479102c700664')
17 build() {
18   cd "$srcdir/$pkgname-$pkgver"
20   echo INSTALL_BASE=/usr > $srcdir/$pkgname-$pkgver/csrc/conf/local.mk
21   ./configure
22   make
23   mkdir -p $pkgdir{/etc/profile.d,/usr/{include,lib,bin,share/{man/man1,doc/$pkgname/technical}}}
24   make INSTALL_BASE=${pkgdir}/usr install
25   export CCN_HOME=/usr
26   echo "export CCN_HOME=/usr/lib/ccn" > ${pkgdir}/etc/profile.d/${pkgname}.sh
27   chmod +x ${pkgdir}/etc/profile.d/${pkgname}.sh
29   install -Dm644 doc/manpages/*.1 $pkgdir/usr/share/man/man1/
30   install -Dm644 doc/technical/*.txt $pkgdir/usr/share/doc/ccnx/technical/
31   install -Dm644 README NOTICES NEWS $pkgdir/usr/share/doc/ccnx/
32
33 # vim:set ts=2 sw=2 et: