wok-current view lua-ffi/receipt @ rev 24050
updated i3 and i3-man (4.5.1 -> 4.19.2)
author | Hans-G?nter Theisgen |
---|---|
date | Thu May 13 14:58:33 2021 +0100 (2021-05-13) |
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 }