milis/talimatname/genel/lua-lgi/talimat

40 lines
931 B
Plaintext

# Description: Lua bindings for gnome/gobject using gobject-introspection library
# URL: https://github.com/pavouk/lgi
# Packager: milisarge
# Depends on: glib libffi lua gobject-introspection
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"
}