From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/lgi/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 community/lgi/PKGBUILD (limited to 'community/lgi/PKGBUILD') diff --git a/community/lgi/PKGBUILD b/community/lgi/PKGBUILD new file mode 100644 index 000000000..0c03956a1 --- /dev/null +++ b/community/lgi/PKGBUILD @@ -0,0 +1,52 @@ +# $Id: PKGBUILD 85686 2013-03-04 23:40:53Z seblu $ +# Maintainer: speps +# Maintainer: Sébastien Luttringer + +pkgbase=lgi +pkgname=(lua-lgi) +pkgver=0.7.1 +pkgrel=1 +pkgdesc='Lua bindings for gnome/gobject using gobject-introspection library' +arch=(i686 x86_64) +url='https://github.com/pavouk/lgi' +license=('custom:MIT') +depends=('glibc' 'glib2' 'libffi' 'lua' 'gobject-introspection') +replaces=('lgi') +conflicts=('lgi') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pavouk/$pkgbase/archive/$pkgver.tar.gz") +md5sums=('de7367aee8e39f7df7c2229675c5ff2d') + +build() { + cd $pkgbase-$pkgver + make +} + +package_lua-lgi() { + cd $pkgbase-$pkgver + make \ + LUA_LIBDIR=/usr/lib/lua/5.2 \ + LUA_SHAREDIR=/usr/share/lua/5.2 \ + DESTDIR="$pkgdir/" install + + # dump typelib tool + install -Dm755 tools/dump-typelib.lua \ + "$pkgdir/usr/bin/dump-typelib" + + # docs + install -d "$pkgdir/usr/share/doc/$pkgname" + install -Dm644 docs/* \ + "$pkgdir/usr/share/doc/$pkgname" + + # samples + install -d "$pkgdir/usr/share/$pkgname/samples/gtk-demo" + install -Dm644 samples/*.lua \ + "$pkgdir/usr/share/$pkgname/samples" + install -Dm644 samples/gtk-demo/* \ + "$pkgdir/usr/share/$pkgname/samples/gtk-demo" + + # license + install -Dm644 LICENSE \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf