aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-socket/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-12-16 12:52:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-12-16 12:52:50 +0000
commit0c762268fc526343e34d47c98f15b59773df1301 (patch)
treeac4ca5743f64d654b6ee4a39795f7bf505c2d827 /main/lua-socket/APKBUILD
parent6afc551aa3e4c4a17137c370a4d148217f9548f4 (diff)
downloadaports-0c762268fc526343e34d47c98f15b59773df1301.tar.bz2
aports-0c762268fc526343e34d47c98f15b59773df1301.tar.xz
main/lua-socket: enable unix domain sockets
Diffstat (limited to 'main/lua-socket/APKBUILD')
-rw-r--r--main/lua-socket/APKBUILD29
1 files changed, 23 insertions, 6 deletions
diff --git a/main/lua-socket/APKBUILD b/main/lua-socket/APKBUILD
index 5939dd425d..b53d8a7e8b 100644
--- a/main/lua-socket/APKBUILD
+++ b/main/lua-socket/APKBUILD
@@ -3,7 +3,7 @@
pkgname=lua-socket
_name=luasocket
pkgver=2.0.2
-pkgrel=2
+pkgrel=3
pkgdesc="Luasocket is the most comprehensive networking support library for the Lua language."
url="http://luaforge.net/projects/luasocket/"
arch="all"
@@ -11,18 +11,35 @@ license="MIT"
depends="lua"
makedepends="lua-dev"
install=
-source="http://luaforge.net/frs/download.php/2664/luasocket-$pkgver.tar.gz"
+source="http://luaforge.net/frs/download.php/2664/luasocket-$pkgver.tar.gz
+ unix.patch"
replaces=luasocket
+_builddir="$srcdir/$_name-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
build() {
- cd "$srcdir/$_name-$pkgver"
+ cd "$_builddir"
make || return 1
}
package() {
- cd "$srcdir/$_name-$pkgver"
- make INSTALL_TOP_SHARE="$pkgdir/usr/share/lua/5.1" INSTALL_TOP_LIB="$pkgdir/usr/lib/lua/5.1" install
+ cd "$_builddir"
+ local cmod=$(pkg-config --variable INSTALL_CMOD lua)
+ local lmod=$(pkg-config --variable INSTALL_LMOD lua)
+ make INSTALL_TOP_SHARE="$pkgdir/$lmod" \
+ INSTALL_TOP_LIB="$pkgdir/$cmod" \
+ install
}
-md5sums="41445b138deb7bcfe97bff957503da8e luasocket-2.0.2.tar.gz"
+md5sums="41445b138deb7bcfe97bff957503da8e luasocket-2.0.2.tar.gz
+51c600494106ca39f9816f6574868628 unix.patch"