wok view lua-ffi/receipt @ rev 24005

cdrkit: force catalog sort weight
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 19 09:09:36 2021 +0000 (2021-01-19)
parents
children 5ea0ce1cecc0
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 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # suitable for lua 5.2
23 # package for lua 5.1 should be named lua5.1-ffi
24 sed -i 's|lua5.1|lua5.2|' Makefile
26 make &&
27 make test
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib/lua/5.2
34 cp -a $src/ffi.so $fs/usr/lib/lua/5.2
35 }