milis/talimatname/genel/l/lua-lgi/talimat

40 lines
931 B
Plaintext
Raw Normal View History

2017-08-28 05:40:46 +02:00
# Description: Lua bindings for gnome/gobject using gobject-introspection library
# URL: https://github.com/pavouk/lgi
# Packager: milisarge
# Depends on: glib libffi lua gobject-introspection
name=lua-lgi
version=0.9.1
release=1
source=(https://github.com/pavouk/lgi/archive/$version.tar.gz::$name-$version.tar.gz)
build() {
cd lgi-$version
make
make \
LUA_LIBDIR=/usr/lib/lua/5.3 \
LUA_SHAREDIR=/usr/share/lua/5.3 \
DESTDIR="$PKG/" install
# dump typelib tool
install -Dm755 tools/dump-typelib.lua \
"$PKG/usr/bin/dump-typelib"
# docs
install -d "$PKG/usr/share/doc/$name"
install -Dm644 docs/* \
"$PKG/usr/share/doc/$name"
# samples
install -d "$PKG/usr/share/$name/samples/gtk-demo"
install -Dm644 samples/*.lua \
"$PKG/usr/share/$name/samples"
install -Dm644 samples/gtk-demo/* \
"$PKG/usr/share/$name/samples/gtk-demo"
# license
install -Dm644 LICENSE \
"$PKG/usr/share/licenses/$name/LICENSE"
}