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
|
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
}
|