summaryrefslogtreecommitdiff
path: root/community/gnunet/PKGBUILD
blob: 1f63c7d3774e0c0b31d315e550dbb22f55a8cd1f (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
# $Id: PKGBUILD 78354 2012-10-17 15:17:48Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: wahnby <wahnby@yahoo.fr>

pkgname=gnunet
pkgver=0.9.3
pkgrel=2
pkgdesc="A framework for secure peer-to-peer networking"
arch=('i686' 'x86_64')
url="http://gnunet.org"
license=('GPL')
depends=('gmp' 'libgcrypt' 'libextractor' 'sqlite' 'curl'
	 'libmicrohttpd' 'libunistring')
makedepends=('gettext' 'pkgconfig')
backup=(etc/gnunetd.conf)
options=('!libtool' '!makeflags')
install=gnunet.install
source=(ftp://ftp.gnu.org/gnu/gnunet/gnunet-$pkgver.tar.gz
	gnunet.rc
	gnunet.service
	gnunet.conf.d
	defaults.conf)
md5sums=('4234ad22e3204941773632a1d0c2e0e8'
         '5baf691913b007fb33e365239e3f7217'
         '54cce3d2415d95b2e5bd1bd88db3a0ea'
         'f161b46915736e4017e77ad735521453'
         '0fe23b2ca5b3fc47a0b5645e04406da0')

build() {
  cd $srcdir/gnunet-$pkgver
  sed -i 's|contrib doc|doc|' Makefile.*
  [ -f Makefile ] || ./configure --prefix=/usr --without-mysql
  make
}

package() {
  cd $srcdir/gnunet-$pkgver
  make DESTDIR=$pkgdir install
  install -D -m0755 $srcdir/gnunet.rc $pkgdir/etc/rc.d/gnunetd
  install -D -m0644 $srcdir/gnunet.conf.d $pkgdir/etc/conf.d/gnunetd
  install -D -m0644 $srcdir/defaults.conf $pkgdir/etc/gnunetd.conf
  rm -rf $pkgdir/usr/include/libltdl $pkgdir/usr/lib/libltdl.* $pkgdir/usr/include/ltdl.h
  install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
}