summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..7dfffad2badd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Lucien LOISEAU (Marlinski) <marlinski@disruptedsystems.org>
+
+pkgname=dtn-tools
+pkgver=1.0.0
+pkgrel=1
+pkgdesc='IBR-DTN - A modular and lightweight implementation of the bundle protocol'
+arch=('i686' 'x86_64')
+url='https://github.com/ibrdtn/ibrdtn'
+license=('Apache License 2.0')
+depends=(dtnd ibrdtn ibrcommon)
+makedepends=(git binutils gcc libtool cppunit automake autoconf pkgconf)
+provides=(dtn-tools)
+
+source=(git://github.com/ibrdtn/ibrdtn.git)
+sha512sums=('SKIP')
+
+prepare() {
+ cd ibrdtn
+}
+
+build() {
+ cd ibrdtn/ibrdtn/tools
+ [ -f Makefile ] && make clean
+ bash autogen.sh
+ ./configure --prefix=/usr
+ make -j
+}
+
+package() {
+ cd ibrdtn/ibrdtn/tools
+ make DESTDIR="$pkgdir" install
+ mv ${pkgdir}/usr/sbin/dtntunnel ${pkgdir}/usr/bin/dtntunnel
+ rmdir ${pkgdir}/usr/sbin
+}