wok view lua-ffi/receipt @ rev 24485
updated djview (4.10.6 -> 4.12)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 18 16:41:03 2022 +0100 (2022-02-18) |
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 }