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

Sven-Hendrik Haase svenstaro at archlinux.org
Fri Aug 28 06:02:38 UTC 2020


    Date: Friday, August 28, 2020 @ 06:02:38
  Author: svenstaro
Revision: 394822

archrelease: copy trunk to extra-x86_64

Added:
  assimp/repos/extra-x86_64/PKGBUILD
    (from rev 394821, assimp/trunk/PKGBUILD)
Deleted:
  assimp/repos/extra-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-28 06:01:53 UTC (rev 394821)
+++ PKGBUILD	2020-08-28 06:02:38 UTC (rev 394822)
@@ -1,35 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
-# Contributor: jepaan <jepaan at hotmail dot com>
-
-pkgname=assimp
-pkgver=5.0.1
-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' 'boost-libs')
-makedepends=('cmake' 'boost')
-url='http://assimp.sourceforge.net/index.html'
-source=("$pkgname-$pkgver.tar.gz::https://github.com/assimp/assimp/archive/v${pkgver}.tar.gz")
-sha512sums=('51b704ffea778638b9e228578650f62691c56ee1a90337f8bbbee37e807455466d818234be24852334e5806260e5690932c9bd8e00f055c5c26782e0636538f0')
-
-prepare() {
-	mkdir ${srcdir}/${pkgname}-${pkgver}/build
-}
-
-build() {
-	cd ${srcdir}/${pkgname}-${pkgver}/build
-
-	cmake .. \
-        -DCMAKE_INSTALL_PREFIX=/usr \
-        -DCMAKE_BUILD_TYPE=Release \
-        -DASSIMP_BUILD_SAMPLES=OFF
-	make
-}
-
-package()  {
-	cd ${srcdir}/${pkgname}-${pkgver}/build
-
-	make DESTDIR=$pkgdir install
-	install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: assimp/repos/extra-x86_64/PKGBUILD (from rev 394821, assimp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-08-28 06:02:38 UTC (rev 394822)
@@ -0,0 +1,37 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: jepaan <jepaan at hotmail dot com>
+
+pkgname=assimp
+pkgver=5.0.1
+pkgrel=2
+pkgdesc="Library to import various well-known 3D model formats in an uniform manner"
+arch=('x86_64')
+license=('BSD')
+depends=('zlib' 'gcc-libs' 'boost-libs')
+makedepends=('cmake' 'boost' 'ninja')
+url='https://assimp.org/'
+source=("$pkgname-$pkgver.tar.gz::https://github.com/assimp/assimp/archive/v${pkgver}.tar.gz")
+sha512sums=('51b704ffea778638b9e228578650f62691c56ee1a90337f8bbbee37e807455466d818234be24852334e5806260e5690932c9bd8e00f055c5c26782e0636538f0')
+
+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