diff options
author | Dimitris Kiziridis | 2020-04-14 00:09:36 +0300 |
---|---|---|
committer | Dimitris Kiziridis | 2020-04-14 00:09:36 +0300 |
commit | 72c0a3bb587a8d875682c1c4bdcb1b5336bb04b9 (patch) | |
tree | 07cd99b7fafdd061abca9fc85ab457b74dc0e8f5 | |
download | aur-72c0a3bb587a8d875682c1c4bdcb1b5336bb04b9.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a30c461e7dc6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = lua51-lgi-git + pkgdesc = Lua 5.1 bindings for GObject using gobject-introspection library + pkgver = 0.9.2.r50.g9541863 + pkgrel = 1 + url = https://github.com/pavouk/lgi + arch = x86_64 + license = MIT + makedepends = gobject-introspection + makedepends = git + depends = glibc + depends = glib2 + depends = libffi + depends = lua51 + depends = gobject-introspection-runtime + provides = lua51-lgi + conflicts = luajit-lgi + source = git+https://github.com/pavouk/lgi + md5sums = SKIP + +pkgname = lua51-lgi-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bdcf328928c4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com> + +_pkgname=lgi +_luaver=5.1 +pkgname=("lua${_luaver//./}-${_pkgname}-git") +pkgver=0.9.2.r50.g9541863 +pkgrel=1 +pkgdesc='Lua 5.1 bindings for GObject using gobject-introspection library' +url='https://github.com/pavouk/lgi' +arch=('x86_64') +license=('MIT') +provides=("lua${_luaver//./}-${_pkgname}") +depends=('glibc' + 'glib2' + 'libffi' + "lua${_luaver//./}" + 'gobject-introspection-runtime') +makedepends=('gobject-introspection' 'git') +conflicts=('luajit-lgi') +source=("git+${url}") +md5sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_pkgname}" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "${srcdir}/${_pkgname}" + sed -i -e "s/^PKGS = .*/& lua${_luaver//./}/" lgi/Makefile +} + +build() { + cd "${srcdir}/lgi" + make PREFIX=/usr LUA_VERSION=${_luaver} +} + +package() { + cd "${srcdir}/${_pkgname}" + make DESTDIR="${pkgdir}/" PREFIX=/usr LUA_VERSION=${_luaver} install + install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/lua51-lgi" + install -Dm 644 docs/* -t "${pkgdir}/usr/share/doc/lua51-lgi" + install -Dm 644 samples/*.lua -t "${pkgdir}/usr/share/lua51-lgi/samples" + install -Dm 644 samples/gtk-demo/* -t "${pkgdir}/usr/share/lua51-lgi/samples/gtk-demo" + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/lua51-lgi" +} +# vim: ts=2 sw=2 et:
\ No newline at end of file |