git » assimp6.git » commit 68ad4ed

Rebuild with new patch

author Sven-Hendrik Haase
2022-07-09 01:53:22 UTC
committer Sven-Hendrik Haase
2022-07-09 01:53:22 UTC
parent c1b6ecc2e4adc2e52bf43642e943836cb2952444

Rebuild with new patch

PKGBUILD +8 -3

diff --git a/PKGBUILD b/PKGBUILD
index 5951196..4d08fcc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 
 pkgname=assimp
 pkgver=5.2.4
-pkgrel=1
+pkgrel=2
 pkgdesc="Library to import various well-known 3D model formats in an uniform manner"
 arch=('x86_64')
 license=('BSD')
@@ -11,9 +11,14 @@ depends=('zlib' 'gcc-libs')
 makedepends=('cmake' 'ninja')
 url='https://github.com/assimp/assimp'
 source=("$pkgname-$pkgver.tar.gz::https://github.com/assimp/assimp/archive/v${pkgver}.tar.gz"
-        https://github.com/gentoo/gentoo/raw/master/media-libs/assimp/files/assimp-5.2.3-drop-Werror-gcc-option.patch)
+        https://github.com/gentoo/gentoo/raw/master/media-libs/assimp/files/assimp-5.2.2-fix-usage-of-incompatible-minizip-data-structure.patch)
 sha512sums=('ee988b1806b46c78f97bb5b25237a3f56a7028ed37898fb9b243e379e29e8bfd29e4dffc616566941ed9bdcf502bd30568904ad2ef2ef7d0f63b40daefdc66bf'
-            '774abd8d0334605a1d48889036376d16fed683dd0f0f86fcfc39792e97d088383ca7eb49f8df842feedba1d2790b8a86c7d752aab38ca6fcf0f7819cc1a96d73')
+            '2103864934bd4a3469b419536da4604839b3b1a1b412612dd5a631f578d7c54538e7c97ca612e28425e5f1dd0ce71c11117165f1cbcb5f3604113ae4be259734')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  patch -Np1 -i ../assimp-5.2.2-fix-usage-of-incompatible-minizip-data-structure.patch # https://github.com/assimp/assimp/issues/4334
+}
 
 build() {
   cd ${pkgname}-${pkgver}