Skip to content

Instantly share code, notes, and snippets.

@rebinsilva
Created February 6, 2022 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rebinsilva/ff6dbf052c088f9fb58b4f3473d1ff3d to your computer and use it in GitHub Desktop.
Save rebinsilva/ff6dbf052c088f9fb58b4f3473d1ff3d to your computer and use it in GitHub Desktop.
luabind-ryzom-git PKGBUILD file
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