40 lines
914 B
Plaintext
40 lines
914 B
Plaintext
# 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"
|
||
}
|