wok view lua-ffi/receipt @ rev 24383
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 06 11:51:57 2022 +0000 (2022-02-06) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="lua-ffi"
4 VERSION="1.0"
5 CATEGORY="development"
6 SHORT_DESC="Standalone ffi library for Lua."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/jmckaskill/luaffi/"
11 SOURCE="luaffi"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}archive/$VERSION-work1.tar.gz"
15 BUILD_DEPENDS="lua-dev"
17 #HOST_ARCH="i486 arm"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/\(.*\)-work1.tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # suitable for lua 5.2
29 # package for lua 5.1 should be named lua5.1-ffi
30 sed -i 's|lua5.1|lua5.2|' Makefile
32 make &&
33 make test
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib/lua/5.2
40 cp -a $src/ffi.so $fs/usr/lib/lua/5.2
41 }