wok-6.x diff lua-ffi/receipt @ rev 23997
linld: add iso support (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 08 20:36:59 2021 +0000 (2021-01-08) |
parents | |
children | 5ea0ce1cecc0 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lua-ffi/receipt Fri Jan 08 20:36:59 2021 +0000 1.3 @@ -0,0 +1,35 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="lua-ffi" 1.7 +VERSION="1.0" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Standalone ffi library for Lua." 1.10 +MAINTAINER="maintainer@slitaz.org" 1.11 +LICENSE="MIT" 1.12 +WEB_SITE="https://github.com/jmckaskill/luaffi/" 1.13 + 1.14 +SOURCE="luaffi" 1.15 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.16 +WGET_URL="${WEB_SITE}archive/$VERSION-work1.tar.gz" 1.17 + 1.18 +BUILD_DEPENDS="lua-dev" 1.19 + 1.20 +#HOST_ARCH="i486 arm" 1.21 + 1.22 +# Rules to configure and make the package. 1.23 +compile_rules() 1.24 +{ 1.25 + # suitable for lua 5.2 1.26 + # package for lua 5.1 should be named lua5.1-ffi 1.27 + sed -i 's|lua5.1|lua5.2|' Makefile 1.28 + 1.29 + make && 1.30 + make test 1.31 +} 1.32 + 1.33 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.34 +genpkg_rules() 1.35 +{ 1.36 + mkdir -p $fs/usr/lib/lua/5.2 1.37 + cp -a $src/ffi.so $fs/usr/lib/lua/5.2 1.38 +}