[arch-commits] Commit in assimp/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Sven-Hendrik Haase svenstaro at gemini.archlinux.org
Sat Nov 20 11:39:51 UTC 2021


    Date: Saturday, November 20, 2021 @ 11:39:51
  Author: svenstaro
Revision: 428678

archrelease: copy trunk to staging-x86_64

Added:
  assimp/repos/staging-x86_64/
  assimp/repos/staging-x86_64/PKGBUILD
    (from rev 428677, assimp/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: assimp/repos/staging-x86_64/PKGBUILD (from rev 428677, assimp/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2021-11-20 11:39:51 UTC (rev 428678)
@@ -0,0 +1,37 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: jepaan <jepaan at hotmail dot com>
+
+pkgname=assimp
+pkgver=5.1.0
+pkgrel=1
+pkgdesc="Library to import various well-known 3D model formats in an uniform manner"
+arch=('x86_64')
+license=('BSD')
+depends=('zlib' 'gcc-libs')
+makedepends=('cmake' 'ninja')
+url='https://assimp.org/'
+source=("$pkgname-$pkgver.tar.gz::https://github.com/assimp/assimp/archive/v${pkgver}.tar.gz")
+sha512sums=('b0445c048173720bccdfb64d5beb4637bd58021c29bdb5ccc2ca3e5b1189c0c46a03dd93da59e254e70b159e4918f4b7d2bd82f2390e9b45faf2361d450cad80')
+
+build() {
+    cd ${pkgname}-${pkgver}
+
+    cmake . \
+        -Bbuild \
+        -GNinja \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DASSIMP_BUILD_SAMPLES=OFF
+    ninja -C build
+}
+
+package()  {
+    cd ${pkgname}-${pkgver}
+
+    DESTDIR="$pkgdir" ninja -C build install
+    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+
+    # Remove this in release > 5.0.1
+    # https://bugs.archlinux.org/task/67735
+    sed -i "s|includedir=.*|includedir=/usr/include/assimp|" "${pkgdir}"/usr/lib/pkgconfig/assimp.pc
+}



More information about the arch-commits mailing list