diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-30 21:15:46 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-30 21:15:46 +0200 |
commit | 67e6e465ec1f5b58731af319fd309ba7c9e6ee03 (patch) | |
tree | 9fd94e7825fa4af99d08e927d964eefa756ccb22 /spot-on | |
parent | fix xtux (diff) | |
download | aur-packages-67e6e465ec1f5b58731af319fd309ba7c9e6ee03.tar.gz aur-packages-67e6e465ec1f5b58731af319fd309ba7c9e6ee03.tar.bz2 aur-packages-67e6e465ec1f5b58731af319fd309ba7c9e6ee03.tar.xz |
add spot-on
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'spot-on')
-rw-r--r-- | spot-on/PKGBUILD | 32 | ||||
-rwxr-xr-x | spot-on/watch | 20 |
2 files changed, 52 insertions, 0 deletions
diff --git a/spot-on/PKGBUILD b/spot-on/PKGBUILD new file mode 100644 index 0000000..c7a031c --- /dev/null +++ b/spot-on/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> + +pkgname=spot-on +pkgver=0.09.04 +pkgrel=1 +pkgdesc='An exploratory research project investigating a variety of communications protocols' +url='http://spot-on.sourceforge.net/' +arch=('i686' 'x86_64') +license=('custom:3-clause BSD') +depends=('qt5-base' 'geoip>=1.5.1' 'libgcrypt>=1.5' 'openssl>=0.9.8' 'lksctp-tools') +makedepends=('qt5-base' 'geoip>=1.5.1' 'libgcrypt>=1.5' 'openssl>=0.9.8' 'lksctp-tools' 'qt5-tools' 'make' 'gcc') +source=("https://downloads.sourceforge.net/project/spot-on/Version%20${pkgver}/Spot-On.d.tar.gz") +sha256sums=('2c75307d52e9e3ee61a35e5406905a9f3a08d61423a36fe1d5c74bb70936936d') + + +build() { + cd "$srcdir/spot-on.d/branches/$pkgver" + qmake-qt5 -o Makefile spot-on.qt5.pro + make +} + +package () { + cd "$srcdir/spot-on.d/branches/$pkgver" + install -dm755 -- "$pkgdir/usr/lib" + install -m755 -- ../../libSpotOn/libspoton.so "$pkgdir/usr/lib/libspoton.so" + install -dm755 -- "$pkgdir/usr/lib/spot-on" + install -m755 -- Spot-On "$pkgdir/usr/lib/spot-on/Spot-On" + install -m755 -- Spot-On "$pkgdir/usr/lib/spot-on/Spot-On-Kernel" + install -dm755 -- "$pkgdir/usr/bin" + ln -s ../lib/spot-on/Spot-On -- "$pkgdir/usr/bin/spot-on" +} + diff --git a/spot-on/watch b/spot-on/watch new file mode 100755 index 0000000..20cdc6f --- /dev/null +++ b/spot-on/watch @@ -0,0 +1,20 @@ +#!/bin/sh + +[ -f 'index.html' ] && rm 'index.html' +wget http://spot-on.sourceforge.net/ >/dev/null 2>/dev/null +if [ $? = 0 ]; then + [ -f unfetchable ] && rm unfetchable + grep 'has been released' < index.html | md5sum > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'dooble' + fi + rm index.html +elif [ ! -f unfetchable ]; then + touch unfetchable + echo 'dooble (unfetchable)' +fi + |