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

40 lines
914 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Lua bindings for gnome/gobject using gobject-introspection library
# URL: https://github.com/pavouk/lgi
# Paketçi: milisarge
# Gerekler: glib libffi lua gobject-introspection
isim=lua-lgi
surum=0.9.1
devir=1
kaynak=(https://github.com/pavouk/lgi/archive/$surum.tar.gz::$isim-$surum.tar.gz)
derle() {
cd lgi-$surum
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/$isim"
install -Dm644 docs/* \
"$PKG/usr/share/doc/$isim"
# samples
install -d "$PKG/usr/share/$isim/samples/gtk-demo"
install -Dm644 samples/*.lua \
"$PKG/usr/share/$isim/samples"
install -Dm644 samples/gtk-demo/* \
"$PKG/usr/share/$isim/samples/gtk-demo"
# license
install -Dm644 LICENSE \
"$PKG/usr/share/licenses/$isim/LICENSE"
}