wok-current view lua-ffi/receipt @ rev 24107
updated adminer (4.7.5 -> 4.8.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Sep 25 17:50:51 2021 +0100 (2021-09-25) |
parents | 201d8937b25c |
children | ac8ca9758df1 |
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*}/releases 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 }