blob: 5e52097e4a7eb959f153b75d182bf01af28d1795 (
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
|
# Author: mosra <mosra@centrum.cz>
pkgname=magnum-extras-git
pkgver=2020.06.r93.g12733b1
pkgrel=1
pkgdesc="Extras for the Magnum C++11/C++14 graphics engine (Git version)"
arch=('i686' 'x86_64')
url="https://magnum.graphics"
license=('MIT')
depends=('magnum-git')
makedepends=('cmake' 'git' 'ninja')
provides=('magnum-extras')
conflicts=('magnum-extras')
source=("git+https://github.com/mosra/magnum-extras.git")
sha1sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/v//g'
}
build() {
mkdir -p "$srcdir/build"
cd "$srcdir/build"
cmake "$srcdir/${pkgname%-git}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMAGNUM_WITH_UI=ON \
-DMAGNUM_WITH_UI_GALLERY=ON \
-G Ninja
ninja
}
package() {
cd "$srcdir/build"
DESTDIR="$pkgdir/" ninja install
}
|