wok-next annotate 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
rev   line source
al@20464 1 # SliTaz package receipt v2.
pankso@13632 2
pankso@13632 3 PACKAGE="lua5.1"
pankso@13632 4 VERSION="5.1.4"
pankso@13632 5 CATEGORY="development"
al@20464 6 SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language"
pankso@13632 7 MAINTAINER="pankso@slitaz.org"
pascal@15379 8 LICENSE="MIT"
pankso@13632 9 WEB_SITE="http://www.lua.org/"
al@20464 10
al@20464 11 TARBALL="lua-$VERSION.tar.gz"
pankso@13632 12 WGET_URL="http://www.lua.org/ftp/$TARBALL"
pankso@13632 13
pascal@15379 14 BUILD_DEPENDS="readline-dev"
al@20464 15 SPLIT="lua5.1-dev"
pascal@15379 16
al@20464 17 compile_rules() {
al@20464 18 sed -i "s#prefix= /usr/local#prefix= /usr#" etc/lua.pc
pankso@13632 19 sed -i "s#${prefix}/lib#${prefix}/lib/lua/5.1#" etc/lua.pc
al@20464 20 sed -i "s#/include#/include/lua/5.1#g" etc/lua.pc
al@20464 21 sed -i "s#/usr/local/#/usr/#" src/luaconf.h
al@20464 22 sed -i "s#share/lua/5.1/#lib/lua/5.1/#" src/luaconf.h
al@20481 23
al@20481 24 case $ARCH in
al@20481 25 x86_64) Arch='nocona';;
al@20481 26 *) Arch="$ARCH";;
al@20481 27 esac
al@20481 28 sed -i s"/-O2/-Os -march=$Arch/" src/Makefile
al@20464 29
pankso@13632 30 make linux &&
pankso@13632 31 make install \
pankso@13632 32 INSTALL_TOP=$DESTDIR/usr \
pankso@13632 33 INSTALL_MAN=$DESTDIR/usr/share/man/man1
pankso@13632 34 }
pankso@13632 35
al@20464 36 genpkg_rules() {
al@20464 37 case $PACKAGE in
al@20464 38 lua5.1)
al@20464 39 mkdir -p $fs/usr/bin $fs/usr/lib/lua/5.1
al@20464 40 cp -a $install/usr/bin/lua $fs/usr/bin/lua5.1
al@20464 41 cp -a $install/usr/bin/luac $fs/usr/bin/luac5.1
al@20464 42 DEPENDS="readline ncurses"
al@20464 43 ;;
al@20464 44 *-dev)
al@20464 45 mkdir -p $fs/usr/lib/pkgconfig $fs/usr/lib/lua/5.1
al@20464 46 cp -a $install/usr/include $fs/usr
pascal@20480 47 cp -a $install/usr/lib/lua/5.1/liblua.a $fs/usr/lib/lua/5.1
al@20464 48 ln -s liblua.a $fs/usr/lib/lua/5.1/liblua5.1.a
al@20464 49 cp -a $src/etc/lua.pc $fs/usr/lib/pkgconfig/lua5.1.pc
al@20464 50 ;;
al@20464 51 esac
pankso@13632 52 }