summaryrefslogtreecommitdiff
path: root/pcr/luadbi
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-02-03 17:31:50 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-02-03 17:31:50 +0100
commit610445825d0df3b657be59f57cc1202f2c52b5e4 (patch)
tree252c8fa75152753168fdbc38fbe4864518255624 /pcr/luadbi
parentd5b8d07d5c477ec574e7fe7a7dbb749db42f81b4 (diff)
downloadabslibre-610445825d0df3b657be59f57cc1202f2c52b5e4.tar.gz
abslibre-610445825d0df3b657be59f57cc1202f2c52b5e4.tar.bz2
abslibre-610445825d0df3b657be59f57cc1202f2c52b5e4.zip
pcr/luadbi: fixed pkgbuild and rebuilt for missing arches
Diffstat (limited to 'pcr/luadbi')
-rw-r--r--pcr/luadbi/Makefile.diff2
-rw-r--r--pcr/luadbi/PKGBUILD32
2 files changed, 21 insertions, 13 deletions
diff --git a/pcr/luadbi/Makefile.diff b/pcr/luadbi/Makefile.diff
index 96778fc58..49ade0f37 100644
--- a/pcr/luadbi/Makefile.diff
+++ b/pcr/luadbi/Makefile.diff
@@ -3,7 +3,7 @@
@@ -1,5 +1,5 @@
CC=gcc
-CFLAGS=-g -pedantic -Wall -O2 -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I .
-+CFLAGS=-g -pedantic -Wall -O2 -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/server -I .
++CFLAGS=-g -pedantic -Wall -O2 -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/server -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I .
AR=ar rcu
RANLIB=ranlib
RM=rm -rf
diff --git a/pcr/luadbi/PKGBUILD b/pcr/luadbi/PKGBUILD
index 8af0916be..e444a526e 100644
--- a/pcr/luadbi/PKGBUILD
+++ b/pcr/luadbi/PKGBUILD
@@ -1,28 +1,38 @@
-# Maintainer: Lee T. Starnes <lstarnes1024@gmail.com>
+# Maintainer (AUR): Aoibhinn di Tori <email@aoibh.in>
+# Contributor (AUR): Lee T. Starnes <lstarnes1024@gmail.com>
# Maintainer (Parabola): fauno <fauno@parabola.nu>
+
+# parabola changes and rationale:
+# - removed empty fields
+# - install'ing packagefiles instead of cp'ing
+
pkgname=luadbi
pkgver=0.5
-pkgrel=3
+pkgrel=3.1
pkgdesc="Database interface library for Lua"
arch=('i686' 'x86_64' 'armv7h')
url="http://code.google.com/p/luadbi/"
-license=('custom:MIT')
-depends=('lua51')
-makedepends=('lua51' 'sqlite3' 'libmariadbclient' 'postgresql' 'postgresql-libs')
+license=('MIT')
+depends=('lua')
+makedepends=('lua' '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")
+source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$pkgname/$pkgname.$pkgver.tar.gz"
+ "Makefile.diff")
+md5sums=('ede2b003aadddc151aac87050c3d926e'
+ '458d1ded068f7923ce6a89660f680d98')
-prepare() {
+build() {
cd "$srcdir"
patch -p1 < Makefile.diff
-}
-build() {
- cd "$srcdir"
+ # fix suggested by sl1pkn07 on AUR
+ # DBI.lua has the path to the lua executable hardcoded
+ sed 's|#!/usr/bin/lua5.1|#!/usr/bin/lua|g' -i DBI.lua
+
make free
}
@@ -37,5 +47,3 @@ package() {
done
}
-sha512sums=('4ed641e113e90acc8a4f6b3b2d0f5d5044c0fbbef3b2fdfb84d15e17115e45c553a33b19bfb165e5af11a2adce501d66859963e3363d3ab1c6a39b0b2ae92e62'
- '2ff656844f6714bfcbe66fc0b2ada232b5ffe2281ba530648d0faa0c051d6b10100487d6915b9664116e1cce07cb931feb1a19883a30f4ce26e5d08e3a067574')