wok-next view lua5.1/receipt @ rev 20931
pygobject3 -> python-pygobject (latest); pygobject -> python-pygobject2 (legacy)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Aug 23 08:03:04 2018 +0300 (2018-08-23) |
parents | 8134df643aca |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
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="http://www.lua.org/"
10 REPOLOGY="lua51"
12 TARBALL="lua-$VERSION.tar.gz"
13 WGET_URL="http://www.lua.org/ftp/$TARBALL"
14 # Integrity check: https://www.lua.org/ftp/
15 TARBALL_SHA1="b3882111ad02ecc6b972f8c1241647905cb2e3fc"
17 BUILD_DEPENDS="readline-dev"
18 SPLIT="lua5.1-dev"
20 compile_rules() {
21 case $ARCH in
22 x86_64) Arch='nocona'; export CFLAGS="$CFLAGS -fPIC";;
23 *) Arch="$ARCH";;
24 esac
25 sed -i s"/-O2/-Os -march=$Arch/" src/Makefile
27 make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux &&
28 make install || return 1
30 install -Dm644 $src/etc/lua.pc $install/usr/lib/pkgconfig/lua5.1.pc
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 lua5.1)
36 copy @std
37 DEPENDS="readline"
38 ;;
39 *-dev)
40 copy @dev
41 ;;
42 esac
43 }