wok view lua5.1/receipt @ rev 22042

gcc83-lib-base: do NOT provide gcc-lib-base
Currently BOTH gcc-lib-base and gcc83-lib-base are installed on my SliTaz system. So, with the current (and longstanding) tazpkg limitations I can't update just gcc-lib-base: tazpkg always updates gcc83-lib-base for me instead. Now I can't run Firefox, Vivaldi, Chrome, etc. I think because of gcc-lib-base, but I not sure 1bsolutely.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 22 12:55:54 2019 +0300 (2019-10-22)
parents 2a5cc8208d36
children ede1d184d5c5
line source
1 # SliTaz package receipt.
3 PACKAGE="lua5.1"
4 VERSION="5.1.5"
5 CATEGORY="development"
6 SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.lua.org/"
11 SOURCE="lua"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://www.lua.org/ftp/$TARBALL"
15 DEPENDS="readline ncurses"
16 BUILD_DEPENDS="readline-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 patch -p0 < $stuff/lua5.1-paths.patch || exit 1
22 sed -i "s#prefix= /usr/local#prefix= /usr#" etc/lua.pc
23 sed -i "s#${prefix}/lib#${prefix}/lib/lua/5.1#" etc/lua.pc
24 sed -i "s#/include#/include/lua/5.1#g" etc/lua.pc
25 sed -i "s#/usr/local/#/usr/#" src/luaconf.h
26 sed -i "s#share/lua/5.1/#lib/lua/5.1/#" src/luaconf.h
27 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
29 make linux &&
30 make install \
31 INSTALL_TOP=$DESTDIR/usr \
32 INSTALL_MAN=$DESTDIR/usr/share/man/man1
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/bin
39 mkdir -p $fs/usr/lib/lua/5.1
41 cp -a $install/usr/bin/lua $fs/usr/bin/lua5.1
42 cp -a $install/usr/bin/luac $fs/usr/bin/luac5.1
43 }