summaryrefslogtreecommitdiff
path: root/community/lgi
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-24 02:37:25 -0800
committerroot <root@rshg054.dnsready.net>2012-12-24 02:37:25 -0800
commitdaf3981c259a9a9ee281fe64ad4f81aaea71e686 (patch)
tree353ea0f18337c9986682c458aa0ad5a6c7e397e3 /community/lgi
parentd4cde61aa9a5ccdde242a2bfe9eb7973a49acb49 (diff)
Mon Dec 24 02:36:08 PST 2012
Diffstat (limited to 'community/lgi')
-rw-r--r--community/lgi/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/community/lgi/PKGBUILD b/community/lgi/PKGBUILD
new file mode 100644
index 000000000..8aa162684
--- /dev/null
+++ b/community/lgi/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 81537 2012-12-23 19:51:51Z seblu $
+# Maintainer: speps <speps at aur dot archlinux dot org>
+# Maintainer: Sébastien Luttringer <seblu@archlinux.org>
+
+pkgname=lgi
+pkgver=0.6.2
+pkgrel=1
+pkgdesc='Lua binadings 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')
+source=("https://github.com/downloads/pavouk/lgi/$pkgname-$pkgver.tar.gz")
+md5sums=('9ae2c0740e9ea536b6b6afacea5bd21b')
+
+build() {
+ cd $pkgname-$pkgver
+ make
+}
+
+package() {
+ cd $pkgname-$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: