You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
41 lines
1.0 KiB
# Author: mosra <mosra@centrum.cz> |
|
pkgname=magnum-bindings-git |
|
pkgver=2020.06.r116.g62a07c3 |
|
pkgrel=1 |
|
pkgdesc="Bindings for the Magnum C++11/C++14 graphics engine (Git version)" |
|
arch=('i686' 'x86_64') |
|
url="https://magnum.graphics" |
|
license=('MIT') |
|
depends=('magnum-git' 'python') |
|
makedepends=('cmake' 'git' 'ninja' 'pybind11') |
|
provides=('magnum-bindings') |
|
conflicts=('magnum-bindings') |
|
source=("git+https://github.com/mosra/magnum-bindings.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_PYTHON=ON \ |
|
-G Ninja |
|
ninja |
|
} |
|
|
|
package() { |
|
# Helper headers |
|
cd "$srcdir/build" |
|
DESTDIR="$pkgdir/" ninja install |
|
|
|
# Native and python packages |
|
cd "$srcdir/build/src/python" |
|
python setup.py install --root="$pkgdir" --prefix=/usr |
|
}
|
|
|