summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul2017-12-24 12:01:11 +0100
committerPaul2017-12-24 12:01:11 +0100
commit0c95355ac99f0e9b77b623f33e224226325a0064 (patch)
treeb815a29fd8221ae8ccad54053ff2ca5c6c172047
downloadaur-stl2thumbnail-git.tar.gz
initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD39
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dfc68e7c32c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = stl2thumbnail-git
+ pkgdesc = Enables file managers to generate thumbnails for STL files
+ pkgver = v0.1.r1.ge58f3f3
+ pkgrel = 1
+ url = https://github.com/krepa098/stl2thumbnail
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = cmake
+ makedepends = glm
+ depends = libpng
+ source = stl2thumbnail::git+https://github.com/krepa098/stl2thumbnail.git#branch=master
+ md5sums = SKIP
+
+pkgname = stl2thumbnail-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8e73a45d318
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: krepa098 <krepa098@gmail.com>
+
+_pkgname=stl2thumbnail
+pkgname=stl2thumbnail-git
+pkgver=v0.1.r1.ge58f3f3
+pkgrel=1
+pkgdesc="Enables file managers to generate thumbnails for STL files"
+arch=("i686" "x86_64")
+url="https://github.com/krepa098/stl2thumbnail"
+license=("GPL")
+groups=()
+depends=("libpng")
+makedepends=("git" "cmake" "glm")
+source=("$_pkgname::git+$url.git#branch=master")
+md5sums=("SKIP")
+
+_gitname="stl2thumbnail"
+_gitbranch="master"
+
+pkgver() {
+ cd "${_pkgname}"
+ git describe --long | sed "s/\([^-]*-g\)/r\1/;s/-/./g"
+}
+
+build() {
+ cd "${_pkgname}/build"
+ cmake .. -DCMAKE_INSTALL_PREFIX="/usr"
+ cmake --build . --config Release
+}
+
+prepare() {
+ cd "${_pkgname}"
+ mkdir -p build
+}
+
+package() {
+ cd "${_pkgname}/build"
+ make DESTDIR="${pkgdir}/" install
+}