aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-11-17 02:55:19 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-11-17 02:55:19 -0600
commit9cb751a3fe07d180a5cce06860430aca3f22b49e (patch)
tree4f8272eb69fa6c368141f5936e5edf35f80912b0
parente21aa81e21e52fd618dc5d7cae48f5d788c8991f (diff)
downloadaports-9cb751a3fe07d180a5cce06860430aca3f22b49e.tar.bz2
aports-9cb751a3fe07d180a5cce06860430aca3f22b49e.tar.xz
main/lua: install to /lib and /bin instead of /usr/bin and /usr/lib
-rw-r--r--main/lua/APKBUILD9
1 files changed, 5 insertions, 4 deletions
diff --git a/main/lua/APKBUILD b/main/lua/APKBUILD
index 90f3009b0e..146adf7ff3 100644
--- a/main/lua/APKBUILD
+++ b/main/lua/APKBUILD
@@ -2,7 +2,7 @@
pkgname=lua
pkgver=5.1.4_p3
_ver=${pkgver%_p*}
-pkgrel=2
+pkgrel=3
pkgdesc="A powerful light-weight programming language designed for extending applications."
url="http://www.lua.org/"
arch="all"
@@ -38,7 +38,7 @@ build ()
cd src
make CFLAGS=" -DLUA_USE_LINUX $CFLAGS" \
- RPATH="/usr/lib" \
+ RPATH="/lib" \
LIB_LIBS="-lpthread -lm -ldl" \
V=$pkgver \
gentoo_all || return 1
@@ -46,9 +46,10 @@ build ()
package() {
cd "$_builddir"
- make INSTALL_TOP="$pkgdir"/usr INSTALL_LIB="$pkgdir"/usr/lib \
+ make INSTALL_TOP="$pkgdir"/usr INSTALL_LIB="$pkgdir"/lib \
+ INSTALL_BIN="$pkgdir"/bin \
V=$pkgver gentoo_install || return 1
- rm "$pkgdir"/usr/lib/*.la || return 1
+ rm "$pkgdir"/lib/*.la || return 1
install -D -m 644 etc/lua.pc "$pkgdir"/usr/lib/pkgconfig/lua.pc
install -D -m 644 doc/lua.1 "$pkgdir"/usr/share/man/man1/lua.1