summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoracxz2020-04-26 15:38:54 -0400
committeracxz2020-04-26 15:38:54 -0400
commitc8a296128b590d459d01f0a8d10d2ecf140e739b (patch)
tree3b491ab80b88f005372ef2bd70714eb4073f9da4
downloadaur-c8a296128b590d459d01f0a8d10d2ecf140e739b.tar.gz
create gpmp2-git package
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD41
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..400b5522d2a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = gpmp2-git
+ pkgdesc = Gaussian Process Motion Planner 2
+ pkgver = r98.c33e9ef
+ pkgrel = 1
+ url = https://github.com/gtrll/gpmp2
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = cmake
+ depends = boost
+ depends = gtsam
+ provides = gpmp2
+ conflicts = gpmp2
+ source = gpmp2-git::git+https://github.com/gtrll/gpmp2
+ sha256sums = SKIP
+
+pkgname = gpmp2-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b782340aaf2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: acxz <akashpatel2008 at yahoo dot com>
+
+pkgname=gpmp2-git
+pkgver=r98.c33e9ef
+pkgrel=1
+pkgdesc="Gaussian Process Motion Planner 2"
+arch=('i686' 'x86_64')
+url="https://github.com/gtrll/gpmp2"
+license=('BSD')
+depends=('boost' 'gtsam')
+makedepends=('cmake')
+provides=('gpmp2')
+conflicts=('gpmp2')
+source=("${pkgname}::git+https://github.com/gtrll/gpmp2")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ sed -i 's/GPMP2_VERSION_STRING/gpmp2_VERSION_STRING/g' "${srcdir}/${pkgname}/CMakeLists.txt"
+}
+
+build() {
+ # Create a build directory
+ mkdir -p "${srcdir}/${pkgname}-build"
+ cd "${srcdir}/${pkgname}-build"
+
+ cmake \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ "${srcdir}/${pkgname}"
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-build"
+ make DESTDIR="${pkgdir}/" install
+}