summaryrefslogtreecommitdiff
path: root/pcr/lua-cyrussasl
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/lua-cyrussasl')
-rw-r--r--pcr/lua-cyrussasl/PKGBUILD39
-rw-r--r--pcr/lua-cyrussasl/lua-cyrussasl.patch10
2 files changed, 24 insertions, 25 deletions
diff --git a/pcr/lua-cyrussasl/PKGBUILD b/pcr/lua-cyrussasl/PKGBUILD
index 30bed3f25..a837ae2e1 100644
--- a/pcr/lua-cyrussasl/PKGBUILD
+++ b/pcr/lua-cyrussasl/PKGBUILD
@@ -1,33 +1,32 @@
# Maintainer (Arch): Dwayne Bent <dbb.1@liqd.org>
+# parabola changes and rationale:
+# - upstream pkgbuild is gone, but we keep maintaining this.
+
pkgname=lua-cyrussasl
-pkgver=1.0.0
-pkgrel=3
+pkgver=1.1.0
+pkgrel=1
pkgdesc="Lua bindings for Cyrus SASL library."
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'armv7h')
url="http://github.com/JorjBauer/lua-cyrussasl"
license=('BSD')
-makedepends=('lua51' 'libsasl')
-source=(
- "lua-cyrussasl-$pkgver.tar.gz::https://github.com/JorjBauer/lua-cyrussasl/tarball/v$pkgver"
- "lua-cyrussasl.patch"
-)
-md5sums=('40c94c06441e1e47640d81b125742969'
- 'bdb7b8413f9b7d9598b7c8b820427751')
+makedepends=('lua' 'libsasl')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/JorjBauer/$pkgname/archive/v$pkgver.tar.gz"
+ "$pkgname.patch")
+md5sums=('4466154ebdd18cf6f35951a46f53be78'
+ '60387c1abeb59133712dd16be87d402d')
build() {
- cd $srcdir/*-lua-cyrussasl-*
- patch -Np1 -i ${srcdir}/lua-cyrussasl.patch
- make
+ cd $srcdir/$pkgname-$pkgver
+ patch -Np1 -i ../$pkgname.patch
+ make
}
package() {
- mkdir -p "$pkgdir/usr/lib/lua/5.1"
- mkdir -p "$pkgdir/usr/share/licenses/lua-cyrussasl"
-
- cd $srcdir/*-lua-cyrussasl-*
-
- make DESTDIR=${pkgdir} install
- install -m644 "LICENSE" "$pkgdir/usr/share/licenses/lua-cyrussasl/LICENSE"
+ cd $srcdir/$pkgname-$pkgver
+
+ mkdir -p "$pkgdir/usr/lib/lua/5.1"
+ make DESTDIR=${pkgdir} install
+ install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
diff --git a/pcr/lua-cyrussasl/lua-cyrussasl.patch b/pcr/lua-cyrussasl/lua-cyrussasl.patch
index cf1229a3f..db1ad90f0 100644
--- a/pcr/lua-cyrussasl/lua-cyrussasl.patch
+++ b/pcr/lua-cyrussasl/lua-cyrussasl.patch
@@ -1,8 +1,8 @@
--- lua-cyrussasl.orig/Makefile 2010-07-06 12:01:15.000000000 -0500
+++ lua-cyrussasl/Makefile 2013-02-17 17:07:33.896240233 -0500
-@@ -4,12 +4,18 @@
- #LUAPATH=/usr/share/lua/5.1
- #CPATH=/usr/lib/lua/5.1
+@@ -16,12 +16,18 @@
+ #LUAPATH=/usr/local/share/lua/5.1
+ #CPATH=/usr/local/lib/lua/5.1
+# Arch/Parabola
+CFLAGS=-g -O2 -fpic -I/usr/include/lua5.1
@@ -10,7 +10,7 @@
+LUAPATH=/usr/share/lua/5.1
+CPATH=/usr/lib/lua/5.1
+
- # MacOS
+ # MacOS (tested with 10.6, 10.7, 10.8)
-CFLAGS=-g -Wall -O2
-LDFLAGS=-bundle -undefined dynamic_lookup -lsasl2
-MACOSX_VERSION=10.5
@@ -24,7 +24,7 @@
#########################################################
#
-@@ -28,7 +34,7 @@
+@@ -40,7 +46,7 @@
all: $(TARGET)
install: $(TARGET)