Created
February 6, 2022 12:12
-
-
Save rebinsilva/ff6dbf052c088f9fb58b4f3473d1ff3d to your computer and use it in GitHub Desktop.
luabind-ryzom-git PKGBUILD file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=luabind-ryzom | |
pkgver=v0.9.1.r409.g3dd7c54 | |
pkgrel=1 | |
provides=('luabind') | |
pkgdesc="A library that helps you create bindings between C++ and Lua" | |
arch=('i686' 'x86_64') | |
url="http://www.rasterbar.com/products/luabind.html" | |
license=('MIT') | |
makedepends=('cmake' 'git') | |
depends=('gcc-libs') | |
source=("luabind::git+https://github.com/ryzom/luabind.git") | |
md5sums=('SKIP') | |
pkgver() { | |
cd luabind | |
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | |
} | |
build() { | |
cmake -B build -S "${srcdir}/luabind" \ | |
-DCMAKE_BUILD_TYPE='None' \ | |
-DLUABIND_DYNAMIC_LINK=ON \ | |
-DCMAKE_INSTALL_PREFIX='/usr' \ | |
-Wno-dev | |
cmake --build build | |
} | |
package() { | |
DESTDIR="$pkgdir" cmake --install build | |
cd ${pkgdir}/usr/lib | |
ln -s libluabind09.so libluabind.so | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment