Package Details: assimp-git 3.0.1.1629.b65b380-1

Git Clone URL: https://aur.archlinux.org/assimp-git.git (read-only, click to copy)
Package Base: assimp-git
Description: Portable Open Source library to import various well-known 3D model formats in an uniform manner
Upstream URL: http://assimp.sourceforge.net/
Keywords: 3d graphics model
Licenses: BSD
Submitter: lubosz
Maintainer: lubosz
Last Packager: lubosz
Votes: 3
Popularity: 0.000000
First Submitted: 2010-10-09 14:00
Last Updated: 2015-06-22 23:53

Dependencies (2)

Required by (1)

Sources (1)

Latest Comments

sl1pkn07 commented on 2020-12-07 16:34

for pkgver() function, upstream now use https://github.com/assimp/assimp/blob/master/CMakeLists.txt#L55

also. boost is makedepend, and add minizip as depends

please update it

greetings

EDIT: proposal

diff --git a/PKGBUILD b/PKGBUILD
index 866c7dd..54569cf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,17 @@
 #Contributor: socke <github@socker.lepus.uberspace.de>

 pkgname=assimp-git
-pkgver=3.1.1.2748.85e2f47
+pkgver=5.0.1.9432.63f1b6622
 pkgrel=1
 pkgdesc="Portable Open Source library to import various well-known 3D model formats in an uniform manner"
 arch=(i686 x86_64)
 url="http://assimp.sourceforge.net/"
 license=('BSD')
-depends=('boost')
-makedepends=('git')
+depends=('minizip')
+makedepends=('git'
+             'boost'
+             'cmake'
+             )
 conflicts=('assimp')
 provides=('assimp='$pkgver)
 options=(makeflags !emptydirs)
@@ -20,15 +23,13 @@ md5sums=('SKIP')

 pkgver() {
   cd $_gitname
-  
-  major=$(grep "set (ASSIMP_VERSION_MAJOR" CMakeLists.txt | sed 's/set (ASSIMP_VERSION_MAJOR //' | sed 's/)//')
-  minor=$(grep "set (ASSIMP_VERSION_MINOR" CMakeLists.txt | sed 's/set (ASSIMP_VERSION_MINOR //' | sed 's/)//')
-  patch=$(grep "set (ASSIMP_VERSION_PATCH" CMakeLists.txt | sed 's/set (ASSIMP_VERSION_PATCH //' | sed 's/) # subversion revision?//')
-  
+
+  ver=$(cat CMakeLists.txt | grep "Assimp VERSION" | grep -o "[[:digit:]]*" | paste -sd'.')
+
   hash=$(git log --pretty=format:'%h' -n 1)
   revision=$(git rev-list --count HEAD)
-  
-  echo $major.$minor.$patch.$revision.$hash
+
+  echo $ver.$revision.$hash
 }

 build() {
@@ -40,4 +41,5 @@ build() {
 package() {
   cd $_gitname
   make DESTDIR=$pkgdir install
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
(END)

themariusus commented on 2020-06-09 07:18

depends on cmake

sl1pkn07 commented on 2019-03-19 22:36

Hi

please add -DOpenGL_GL_PREFERENCE=GLVND in the cmake options

and seems the pkgversion handle is change. now got "...6894.8d5551a4-1"

greetings

cguenther commented on 2015-05-24 13:51

It would be nice to add the assimp package to the conflicting ones.

best,
Christian

socke commented on 2013-07-28 10:42

I have written a new PKGBUILD removing libminizip as dependency and using the new git build mechanisms.

https://gist.github.com/faulesocke/fdfa281c16a6b8ddb2b9