summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsvenschneider2014-10-02 18:24:49 +0200
committersvenschneider2014-10-02 18:28:01 +0200
commit56c66d532a950897dd45071bd37f384f1fb81997 (patch)
treeb85895ff9d160c1effaa18fcc6a8a62611c0bef8
downloadaur-planner9-git.tar.gz
[planner9-git] added
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD67
2 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..05634c9c744
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = planner9-git
+ pkgdesc = A distributed hierarchical task network planner.
+ pkgver = 20111207
+ pkgrel = 1
+ url = https://gitorious.org/planner9
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = git
+ makedepends = boost
+ depends = boost-libs
+ optdepends = qt4
+ provides = planner9
+ conflicts = planner9
+
+pkgname = planner9-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c1db6cf1c15
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,67 @@
+# Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>
+
+pkgname=planner9-git
+pkgver=20111207
+pkgrel=1
+pkgdesc="A distributed hierarchical task network planner."
+arch=('i686' 'x86_64')
+url="https://gitorious.org/planner9"
+license=('custom')
+depends=('boost-libs')
+makedepends=('git' 'boost')
+optdepends=('qt4')
+provides=('planner9')
+conflicts=('planner9')
+
+_gitroot="https://gitorious.org/planner9/planner9.git"
+_gitname="planner9"
+_gitbranch="master"
+
+
+build() {
+ cd "${srcdir}"
+ msg "Connecting to GIT server...."
+
+ if [ -d ${_gitname} ] ; then
+ cd ${_gitname} && git pull origin
+ msg "The local files are updated."
+ else
+ git clone -b ${_gitbranch} ${_gitroot} ${_gitname}
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting make..."
+
+ rm -rf "${srcdir}/${_gitname}-build"
+ git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
+
+ cd "${srcdir}/${_gitname}-build/"
+
+ # The boost thread library depends on the system library
+ sed "s/Boost REQUIRED thread/Boost REQUIRED thread system/g" -i CMakeLists.txt
+ sed "s/Boost_THREAD_LIBRARY/Boost_LIBRARIES/g" -i programs/CMakeLists.txt
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=On .
+ make
+}
+
+package() {
+ install -dm755 "${pkgdir}"/usr/{bin,lib,include/planner9/{core,distributed,threaded}}
+
+ cd "${srcdir}/${_gitname}-build/core"
+ install -Dm644 *.hpp "${pkgdir}/usr/include/planner9/core"
+ install -Dm644 libplanner9core.so "${pkgdir}/usr/lib"
+
+ cd "${srcdir}/${_gitname}-build/distributed"
+ install -Dm644 *.h "${pkgdir}/usr/include/planner9/distributed"
+ install -Dm644 *.hpp "${pkgdir}/usr/include/planner9/distributed"
+ install -Dm644 libplanner9distributed.so "${pkgdir}/usr/lib"
+
+ cd "${srcdir}/${_gitname}-build/threaded"
+ install -Dm644 *.hpp "${pkgdir}/usr/include/planner9/threaded"
+ install -Dm644 libplanner9threaded.so "${pkgdir}/usr/lib"
+
+
+ cd "${srcdir}/${_gitname}-build/programs"
+ install -Dm755 p9client p9distributed p9simple p9simpleproba p9threaded "${pkgdir}/usr/bin"
+}