wok view lua/receipt @ rev 15603
Use install instead of _pkg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 06 10:39:07 2013 +0000 (2013-12-06) |
parents | 0769826c3fc4 |
children | 805d0bebfba2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lua"
4 VERSION="5.2.1"
5 CATEGORY="development"
6 SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.lua.org/"
11 WGET_URL="http://www.lua.org/ftp/$TARBALL"
13 DEPENDS="readline ncurses"
14 BUILD_DEPENDS="readline-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i "s#/usr/local/#/usr/#" src/luaconf.h
21 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
22 make linux &&
23 # lua.pc
24 make pc > lua.pc &&
25 sed -i "s#/local##g" lua.pc &&
26 make install \
27 INSTALL_TOP=$DESTDIR/usr \
28 INSTALL_MAN=$DESTDIR/usr/share/man/man1
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin
35 cp -a $install/usr/bin $fs/usr
36 }