wok-current view lua5.1-mpack/receipt @ rev 25650

Fix libwebkit gtk+ twice in dep, thanks Ceel
author Stanislas Leduc <shann@slitaz.org>
date Fri Feb 02 17:58:11 2024 +0000 (9 months ago)
parents 395b0dea66db
children
line source
1 # SliTaz package receipt.
3 PACKAGE="lua5.1-mpack"
4 VERSION="1.0.9"
5 CATEGORY="development"
6 SHORT_DESC="Libmpack bindings for Lua."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/libmpack/libmpack-lua/"
10 REPOLOGY="lua:mpack"
12 SOURCE="libmpack-lua"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="${WEB_SITE}archive/$VERSION.tar.gz"
16 SUGGESTED="lua5.1"
17 DEPENDS="libmpack"
18 BUILD_DEPENDS="libmpack-dev lua5.1 lua5.1-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 make \
31 FETCH=false \
32 LUA_INCLUDE=-I/usr/include/lua/5.1 \
33 USE_SYSTEM_LUA=yes \
34 USE_SYSTEM_MPACK=yes \
35 LUA_LIB=/usr/lib/lua/5.1 &&
36 make install \
37 FETCH=false \
38 LUA_INCLUDE=-I/usr/include/lua/5.1 \
39 USE_SYSTEM_LUA=yes \
40 USE_SYSTEM_MPACK=yes \
41 LUA_LIB=/usr/lib/lua/5.1 \
42 DESTDIR="$DESTDIR"
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 cook_copy_files *.so*
49 }