2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: Lua bindings for gnome/gobject using gobject-introspection library
|
2017-08-28 05:40:46 +02:00
|
|
|
|
# URL: https://github.com/pavouk/lgi
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: glib libffi lua gobject-introspection
|
2017-08-28 05:40:46 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +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)
|
2017-08-28 05:40:46 +02:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd lgi-$surum
|
2017-08-28 05:40:46 +02:00
|
|
|
|
|
|
|
|
|
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
|
2017-10-28 14:10:23 +02:00
|
|
|
|
install -d "$PKG/usr/share/doc/$isim"
|
2017-08-28 05:40:46 +02:00
|
|
|
|
install -Dm644 docs/* \
|
2017-10-28 14:10:23 +02:00
|
|
|
|
"$PKG/usr/share/doc/$isim"
|
2017-08-28 05:40:46 +02:00
|
|
|
|
|
|
|
|
|
# samples
|
2017-10-28 14:10:23 +02:00
|
|
|
|
install -d "$PKG/usr/share/$isim/samples/gtk-demo"
|
2017-08-28 05:40:46 +02:00
|
|
|
|
install -Dm644 samples/*.lua \
|
2017-10-28 14:10:23 +02:00
|
|
|
|
"$PKG/usr/share/$isim/samples"
|
2017-08-28 05:40:46 +02:00
|
|
|
|
install -Dm644 samples/gtk-demo/* \
|
2017-10-28 14:10:23 +02:00
|
|
|
|
"$PKG/usr/share/$isim/samples/gtk-demo"
|
2017-08-28 05:40:46 +02:00
|
|
|
|
|
|
|
|
|
# license
|
|
|
|
|
install -Dm644 LICENSE \
|
2017-10-28 14:10:23 +02:00
|
|
|
|
"$PKG/usr/share/licenses/$isim/LICENSE"
|
2017-08-28 05:40:46 +02:00
|
|
|
|
}
|