summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/lua-socket/APKBUILD (renamed from main/luasocket/APKBUILD)10
1 files changed, 6 insertions, 4 deletions
diff --git a/main/luasocket/APKBUILD b/main/lua-socket/APKBUILD
index b5edf4595..df001152b 100644
--- a/main/luasocket/APKBUILD
+++ b/main/lua-socket/APKBUILD
@@ -1,6 +1,7 @@
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Mika Havela <mika.havela@gmail.com>
-pkgname=luasocket
+pkgname=lua-socket
+_name=luasocket
pkgver=2.0.2
pkgrel=0
pkgdesc="Luasocket is the most comprehensive networking support library for the Lua language."
@@ -9,15 +10,16 @@ license="MIT"
depends="lua"
makedepends="lua-dev"
install=
-source="http://luaforge.net/frs/download.php/2664/$pkgname-$pkgver.tar.gz"
+source="http://luaforge.net/frs/download.php/2664/luasocket-$pkgver.tar.gz"
+replaces=luasocket
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$srcdir/$_name-$pkgver"
make || return 1
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$srcdir/$_name-$pkgver"
make INSTALL_TOP_SHARE="$pkgdir/usr/share/lua/5.1" INSTALL_TOP_LIB="$pkgdir/usr/lib/lua/5.1" install
}