From 1a6e4a8300507e966f29fdf6f694114822eb2e6e Mon Sep 17 00:00:00 2001 From: svenstaro Date: Sun, 4 Feb 2018 09:15:46 +0000 Subject: [PATCH] archrelease: copy trunk to staging-x86_64 git-svn-id: file:///srv/repos/svn-packages/svn@315835 eb2447ed-0c53-47e4-bac8-5bc4a241df78 --- assimp/repos/staging-x86_64/PKGBUILD | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 assimp/repos/staging-x86_64/PKGBUILD diff --git a/assimp/repos/staging-x86_64/PKGBUILD b/assimp/repos/staging-x86_64/PKGBUILD new file mode 100644 index 000000000000..77f57da5545d --- /dev/null +++ b/assimp/repos/staging-x86_64/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: jepaan + +pkgname=assimp +pkgver=4.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' '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") +md5sums=('83b53a10c38d964bd1e69da0606e2727') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + mkdir build && cd 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 +}