diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2015-07-01 16:34:15 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2015-07-01 16:34:58 -0300 |
commit | 8e11bcb6e57de80d555fb146f6fb3ddf3f1af70d (patch) | |
tree | c0806b000c28f528d7235907d7d142035122281c /pcr/luadbi | |
parent | f57afa6711693a7f1757f1de73d7114610ae485e (diff) | |
download | abslibre-8e11bcb6e57de80d555fb146f6fb3ddf3f1af70d.tar.gz abslibre-8e11bcb6e57de80d555fb146f6fb3ddf3f1af70d.tar.bz2 abslibre-8e11bcb6e57de80d555fb146f6fb3ddf3f1af70d.zip |
luadbi: allows prosody to use databases
Diffstat (limited to 'pcr/luadbi')
-rw-r--r-- | pcr/luadbi/PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
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 <lstarnes1024@gmail.com> +# Maintainer (Parabola): fauno <fauno@parabola.nu> +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') |