wok-next view lua5.1/receipt @ rev 20480

lua5.1: restore liblua5.1.a path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 12 00:04:19 2018 +0100 (2018-03-12)
parents 4645f1c0184f
children b278b2018965
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lua5.1"
4 VERSION="5.1.4"
5 CATEGORY="development"
6 SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://www.lua.org/"
11 TARBALL="lua-$VERSION.tar.gz"
12 WGET_URL="http://www.lua.org/ftp/$TARBALL"
14 BUILD_DEPENDS="readline-dev"
15 SPLIT="lua5.1-dev"
17 compile_rules() {
18 sed -i "s#prefix= /usr/local#prefix= /usr#" etc/lua.pc
19 sed -i "s#${prefix}/lib#${prefix}/lib/lua/5.1#" etc/lua.pc
20 sed -i "s#/include#/include/lua/5.1#g" etc/lua.pc
21 sed -i "s#/usr/local/#/usr/#" src/luaconf.h
22 sed -i "s#share/lua/5.1/#lib/lua/5.1/#" src/luaconf.h
23 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
25 make linux &&
26 make install \
27 INSTALL_TOP=$DESTDIR/usr \
28 INSTALL_MAN=$DESTDIR/usr/share/man/man1
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 lua5.1)
34 mkdir -p $fs/usr/bin $fs/usr/lib/lua/5.1
35 cp -a $install/usr/bin/lua $fs/usr/bin/lua5.1
36 cp -a $install/usr/bin/luac $fs/usr/bin/luac5.1
37 DEPENDS="readline ncurses"
38 ;;
39 *-dev)
40 mkdir -p $fs/usr/lib/pkgconfig $fs/usr/lib/lua/5.1
41 cp -a $install/usr/include $fs/usr
42 cp -a $install/usr/lib/lua/5.1/liblua.a $fs/usr/lib/lua/5.1
43 ln -s liblua.a $fs/usr/lib/lua/5.1/liblua5.1.a
44 cp -a $src/etc/lua.pc $fs/usr/lib/pkgconfig/lua5.1.pc
45 ;;
46 esac
47 }