diff options
Diffstat (limited to 'main/lua-socket/APKBUILD')
-rw-r--r-- | main/lua-socket/APKBUILD | 29 |
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" |