summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Migliore2019-11-26 13:13:51 +0100
committerMichael Migliore2019-11-26 13:13:51 +0100
commit8ed22cf8f82a65a8dba238682c65e4e0c82f34c9 (patch)
tree3a4d6377527384e05ab4a95b7830d0037fa51dad
downloadaur-8ed22cf8f82a65a8dba238682c65e4e0c82f34c9.tar.gz
Initial commit
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD42
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f7251fc10cc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = f3d-git
+ pkgdesc = A fast and minimalist 3D viewer
+ pkgver = 0.1.ed9b979
+ pkgrel = 1
+ url = https://gitlab.kitware.com/f3d/f3d
+ arch = x86_64
+ license = BSD
+ makedepends = cmake
+ depends = vtk-raytracing-git
+
+pkgname = f3d-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c9c148ccf35
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Michael Migliore <mcmigliore+aur@gmail.com>
+
+pkgname=f3d-git
+pkgver=0.1.ed9b979
+pkgrel=1
+pkgdesc='A fast and minimalist 3D viewer'
+arch=('x86_64')
+url="https://gitlab.kitware.com/f3d/f3d"
+license=('BSD')
+depends=('vtk-raytracing-git')
+makedepends=('cmake')
+
+prepare() {
+ cd "${srcdir}"
+ git clone ${url}.git f3d 2> /dev/null || git -C f3d pull
+}
+
+pkgver() {
+ cd "${srcdir}/f3d"
+ echo "0.1.$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/f3d"
+ mkdir -p build && cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_TESTING=OFF \
+ ..
+ make
+}
+
+package() {
+ cd "$srcdir/f3d/build"
+ make DESTDIR="${pkgdir}" install
+
+ install -dv "${pkgdir}"/usr/share/licenses/f3d
+ mv "${pkgdir}"/usr/LICENSE "${pkgdir}"/usr/share/licenses/f3d
+
+ install -dv "${pkgdir}"/usr/share/doc/f3d
+ mv "${pkgdir}"/usr/README.md "${pkgdir}"/usr/share/doc/f3d
+}