wok annotate lua-ffi/receipt @ rev 24646

updated hostapd (2.9 -> 2.10)
author Hans-G?nter Theisgen
date Thu Mar 10 11:11:28 2022 +0100 (2022-03-10)
parents 5ea0ce1cecc0
children
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
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24299 21 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/\(.*\)-work1.tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
Hans-G?nter@23917 25 # Rules to configure and make the package.
Hans-G?nter@23917 26 compile_rules()
Hans-G?nter@23917 27 {
Hans-G?nter@23917 28 # suitable for lua 5.2
Hans-G?nter@23917 29 # package for lua 5.1 should be named lua5.1-ffi
Hans-G?nter@23917 30 sed -i 's|lua5.1|lua5.2|' Makefile
Hans-G?nter@23917 31
Hans-G?nter@23917 32 make &&
Hans-G?nter@23917 33 make test
Hans-G?nter@23917 34 }
Hans-G?nter@23917 35
Hans-G?nter@23917 36 # Rules to gen a SliTaz package suitable for Tazpkg.
Hans-G?nter@23917 37 genpkg_rules()
Hans-G?nter@23917 38 {
Hans-G?nter@23917 39 mkdir -p $fs/usr/lib/lua/5.2
Hans-G?nter@23917 40 cp -a $src/ffi.so $fs/usr/lib/lua/5.2
Hans-G?nter@23917 41 }