talimat 955 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Tanım: Gobject-introspection kütüphanesi kullanılarak gnome/gobject için Lua bağlamaları
  2. # URL: https://github.com/pavouk/lgi
  3. # Paketçi: milisarge
  4. # Gerekler: glib libffi lua gobject-introspection
  5. # Grup: kütüphane
  6. isim=lua-lgi
  7. surum=0.9.1
  8. devir=1
  9. kaynak=(https://github.com/pavouk/lgi/archive/$surum.tar.gz::$isim-$surum.tar.gz)
  10. derle() {
  11. cd lgi-$surum
  12. make
  13. make \
  14. LUA_LIBDIR=/usr/lib/lua/5.3 \
  15. LUA_SHAREDIR=/usr/share/lua/5.3 \
  16. DESTDIR="$PKG/" install
  17. # dump typelib tool
  18. install -Dm755 tools/dump-typelib.lua \
  19. "$PKG/usr/bin/dump-typelib"
  20. # docs
  21. install -d "$PKG/usr/share/doc/$isim"
  22. install -Dm644 docs/* \
  23. "$PKG/usr/share/doc/$isim"
  24. # samples
  25. install -d "$PKG/usr/share/$isim/samples/gtk-demo"
  26. install -Dm644 samples/*.lua \
  27. "$PKG/usr/share/$isim/samples"
  28. install -Dm644 samples/gtk-demo/* \
  29. "$PKG/usr/share/$isim/samples/gtk-demo"
  30. # license
  31. install -Dm644 LICENSE \
  32. "$PKG/usr/share/licenses/$isim/LICENSE"
  33. }