summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db6c182c5afdf7547f69cacfaca71aa791367a21 (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
# Maintainer: Lucien LOISEAU (Marlinski) <marlinski@disruptedsystems.org>

pkgname=dtnd
pkgver=1.0.0
pkgrel=1
pkgdesc='IBR-DTN - A modular and lightweight implementation of the bundle protocol - Daemon'
arch=('i686' 'x86_64')
url='https://github.com/ibrdtn/ibrdtn'
license=('Apache License 2.0')
depends=(ibrcommon ibrdtn sqlite libcurl-compat libcurl-gnutls libnl libdaemon zlib)
makedepends=(git binutils gcc libtool cppunit automake autoconf pkgconf)
provides=(dtnd)

source=(git://github.com/ibrdtn/ibrdtn.git)
sha512sums=('SKIP')

prepare() {
    cd ibrdtn/
}

build() {
    cd ibrdtn/ibrdtn/daemon
    CXXFLAGS=""
    [ -f Makefile ] && make clean
    bash autogen.sh
    ./configure --prefix=/usr --with-curl --with-lowpan --with-sqlite --with-compression --with-cppunit
    make -j
    cd ..
}

package() {
    cd ibrdtn/ibrdtn/daemon
    make DESTDIR="$pkgdir" install
    mv ${pkgdir}/usr/sbin/dtnd ${pkgdir}/usr/bin/dtnd
    rmdir ${pkgdir}/usr/sbin
    mkdir ${pkgdir}/etc
    mv ${pkgdir}/usr/etc/ibrdtnd.conf ${pkgdir}/etc/ibrdtnd.conf
    rmdir ${pkgdir}/usr/etc
}