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

41 lines
955 B
Plaintext
Raw Normal View History

2018-08-08 14:18:27 +02:00
# Tanım: Gobject-introspection kütüphanesi kullanılarak gnome/gobject için Lua bağlamaları
2018-06-09 00:06:58 +02:00
# URL: https://github.com/pavouk/lgi
# Paketçi: milisarge
# Gerekler: glib libffi lua gobject-introspection
2018-08-08 14:18:27 +02:00
# Grup: kütüphane
2018-06-09 00:06:58 +02:00
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"
}