From 8e11bcb6e57de80d555fb146f6fb3ddf3f1af70d Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Wed, 1 Jul 2015 16:34:15 -0300 Subject: luadbi: allows prosody to use databases --- pcr/luadbi/PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pcr/luadbi/PKGBUILD (limited to 'pcr/luadbi/PKGBUILD') diff --git a/pcr/luadbi/PKGBUILD b/pcr/luadbi/PKGBUILD new file mode 100644 index 000000000..f82bbe0a8 --- /dev/null +++ b/pcr/luadbi/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Lee T. Starnes +# Maintainer (Parabola): fauno +pkgname=luadbi +pkgver=0.5 +pkgrel=3 +pkgdesc="Database interface library for Lua" +arch=('i686' 'x86_64' 'armv6h') +url="http://code.google.com/p/luadbi/" +license=('custom:MIT') +depends=('lua51') +makedepends=('lua51' 'sqlite3' 'libmariadbclient' 'postgresql' 'postgresql-libs') +optdepends=( + 'sqlite3: sqlite backend support' + 'libmariadbclient: MariaDB (or MySQL) backend support' + 'postgresql-libs: PostgreSQL backend support' +) +source=("http://luadbi.googlecode.com/files/$pkgname.$pkgver.tar.gz" "Makefile.diff") + +prepare() { + cd "$srcdir" + patch -p1 < Makefile.diff +} + +build() { + cd "$srcdir" + make free +} + +package() { + cd "$srcdir" + + install -Dm644 DBI.lua $pkgdir/usr/share/lua/5.1/DBI.lua + install -Dm644 COPYING $pkgdir/usr/share/licenses/luadbi/LICENSE + + for i in *.so ; do + install -Dm755 "$i" $pkgdir/usr/lib/lua/5.1/"${i##*/}" + done +} + +sha512sums=('4ed641e113e90acc8a4f6b3b2d0f5d5044c0fbbef3b2fdfb84d15e17115e45c553a33b19bfb165e5af11a2adce501d66859963e3363d3ab1c6a39b0b2ae92e62' + '2ff656844f6714bfcbe66fc0b2ada232b5ffe2281ba530648d0faa0c051d6b10100487d6915b9664116e1cce07cb931feb1a19883a30f4ce26e5d08e3a067574') -- cgit v1.2.3