summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD27
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f9de5387e58
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = meshoptimizer
+ pkgdesc = Mesh optimization library that makes meshes smaller and faster to render
+ pkgver = 0.14
+ pkgrel = 1
+ url = https://github.com/zeux/meshoptimizer
+ arch = x86_64
+ license = MIT
+ makedepends = cmake
+ makedepends = ninja
+ source = https://github.com/zeux/meshoptimizer/archive/v0.14.tar.gz
+ sha256sums = 5a6e429ecf72325131b439a46297a690f0cab833c7563efdadab26c0a6cf8490
+
+pkgname = meshoptimizer
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c55655f3e61
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Author: mosra <mosra@centrum.cz>
+pkgname=meshoptimizer
+pkgver=0.14
+pkgrel=1
+pkgdesc='Mesh optimization library that makes meshes smaller and faster to render'
+arch=(x86_64)
+url='https://github.com/zeux/meshoptimizer'
+license=(MIT)
+makedepends=(cmake ninja)
+source=("https://github.com/zeux/meshoptimizer/archive/v$pkgver.tar.gz")
+sha256sums=('5a6e429ecf72325131b439a46297a690f0cab833c7563efdadab26c0a6cf8490')
+
+build() {
+ mkdir -p build && cd build
+ cmake "$srcdir/meshoptimizer-$pkgver" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DMESHOPT_BUILD_SHARED_LIBS=ON \
+ -DBUILD_SHARED_LIBS=ON \
+ -G Ninja
+ ninja
+}
+
+package() {
+ cd build
+ DESTDIR="$pkgdir" ninja install
+}