blob: ff8c9efba46d7cb6cf2be43596bee36ce69a2516 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Michael Migliore <mcmigliore+aur@gmail.com>
# Maintainer: Mathieu Wespthal <mathieu.westphal+aur@gmail.com>
export GIT_LFS_SKIP_SMUDGE=1
_name=f3d
_plugin=draco
pkgname=$_name-plugin-$_plugin-git
pkgver=nightly.r4.gb0f4b37f
pkgrel=1
pkgdesc='A fast and minimalist 3D viewer - Draco Plugin'
arch=('x86_64')
url="https://github.com/$_name-app/$_name"
license=('BSD')
depends=('f3d-core' 'draco')
makedepends=('git' 'git-lfs' 'cmake' 'nlohmann-json')
source=("git+https://github.com/$_name-app/$_name.git")
sha256sums=('SKIP')
pkgver() {
cd "$_name"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$_name/plugins/$_plugin/"
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
..
cmake --build .
}
package() {
cd "$srcdir/$_name/plugins/$_plugin/build"
DESTDIR="$pkgdir" cmake --install .
DESTDIR="$pkgdir" cmake --install . --component configuration
}
|