wok annotate lua-ffi/receipt @ rev 23917

created recipes for lua-ffi and lua-posix
author Hans-G?nter Theisgen
date Wed Aug 19 09:11:10 2020 +0100 (2020-08-19)
parents
children 5ea0ce1cecc0
rev   line source
Hans-G?nter@23917 1 # SliTaz package receipt.
Hans-G?nter@23917 2
Hans-G?nter@23917 3 PACKAGE="lua-ffi"
Hans-G?nter@23917 4 VERSION="1.0"
Hans-G?nter@23917 5 CATEGORY="development"
Hans-G?nter@23917 6 SHORT_DESC="Standalone ffi library for Lua."
Hans-G?nter@23917 7 MAINTAINER="maintainer@slitaz.org"
Hans-G?nter@23917 8 LICENSE="MIT"
Hans-G?nter@23917 9 WEB_SITE="https://github.com/jmckaskill/luaffi/"
Hans-G?nter@23917 10
Hans-G?nter@23917 11 SOURCE="luaffi"
Hans-G?nter@23917 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@23917 13 WGET_URL="${WEB_SITE}archive/$VERSION-work1.tar.gz"
Hans-G?nter@23917 14
Hans-G?nter@23917 15 BUILD_DEPENDS="lua-dev"
Hans-G?nter@23917 16
Hans-G?nter@23917 17 #HOST_ARCH="i486 arm"
Hans-G?nter@23917 18
Hans-G?nter@23917 19 # Rules to configure and make the package.
Hans-G?nter@23917 20 compile_rules()
Hans-G?nter@23917 21 {
Hans-G?nter@23917 22 # suitable for lua 5.2
Hans-G?nter@23917 23 # package for lua 5.1 should be named lua5.1-ffi
Hans-G?nter@23917 24 sed -i 's|lua5.1|lua5.2|' Makefile
Hans-G?nter@23917 25
Hans-G?nter@23917 26 make &&
Hans-G?nter@23917 27 make test
Hans-G?nter@23917 28 }
Hans-G?nter@23917 29
Hans-G?nter@23917 30 # Rules to gen a SliTaz package suitable for Tazpkg.
Hans-G?nter@23917 31 genpkg_rules()
Hans-G?nter@23917 32 {
Hans-G?nter@23917 33 mkdir -p $fs/usr/lib/lua/5.2
Hans-G?nter@23917 34 cp -a $src/ffi.so $fs/usr/lib/lua/5.2
Hans-G?nter@23917 35 }