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