wok-next view lua5.1/receipt @ rev 20717
pcmanfm-legacy: use patch
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun May 27 15:00:58 2018 +0300 (2018-05-27) |
parents | 0c003fc18957 |
children | 618256f7a332 |
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
24 case $ARCH in
25 x86_64) Arch='nocona';;
26 *) Arch="$ARCH";;
27 esac
28 sed -i s"/-O2/-Os -march=$Arch/" src/Makefile
30 make linux &&
31 make install \
32 INSTALL_TOP=$DESTDIR/usr \
33 INSTALL_MAN=$DESTDIR/usr/share/man/man1
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 lua5.1)
39 mkdir -p $fs/usr/bin $fs/usr/lib/lua/5.1
40 cp -a $install/usr/bin/lua $fs/usr/bin/lua5.1
41 cp -a $install/usr/bin/luac $fs/usr/bin/luac5.1
42 DEPENDS="readline ncurses"
43 ;;
44 *-dev)
45 mkdir -p $fs/usr/lib/pkgconfig $fs/usr/lib/lua/5.1
46 cp -a $install/usr/include $fs/usr
47 cp -a $install/usr/lib/lua/5.1/liblua.a $fs/usr/lib/lua/5.1
48 ln -s liblua.a $fs/usr/lib/lua/5.1/liblua5.1.a
49 cp -a $src/etc/lua.pc $fs/usr/lib/pkgconfig/lua5.1.pc
50 ;;
51 esac
52 }