wok view lite/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents d32586bf7d69
children
line source
1 # SliTaz package receipt.
3 PACKAGE="lite"
4 VERSION="1.11"
5 CATEGORY="graphics"
6 SHORT_DESC="LiTE is a Toolkit Engine using DirectFB"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="LiTE"
10 TARBALL="${SOURCE}-${VERSION}.tar.gz"
11 WEB_SITE="https://github.com/rxi/lite"
12 WGET_URL="https://github.com/rxi/lite/archive/refs/tags/v$VERSION.tar.gz"
13 HOST_ARCH="i486 arm"
15 DEPENDS="directfb libsdl2"
16 BUILD_DEPENDS="directfb-dev libsdl2-dev"
18 # Handle cross compilation.
19 case "$ARCH" in
20 arm)
21 export LDFLAGS="$LDFLAGS -L/cross/arm/sysroot/usr/lib"
22 export CPPFLAGS="$CPPFLAGS -I/cross/arm/sysroot/usr/include/directfb" ;;
23 esac
25 # What is the latest version available today?
26 current_version()
27 {
28 wget -O - https://github.com/rxi/lite/releases 2>/dev/null | \
29 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 sed -i 's|gnu11|gnu99|' build.sh
36 ./build.sh
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/bin
43 cp -a $src/lite $fs/usr/bin
44 cp -a $src/data $fs/usr/bin
45 }