wok annotate ntk/receipt @ rev 25805

created recipe for xfce4-weather-plugin
author Hans-G?nter Theisgen
date Wed Nov 13 15:24:31 2024 +0100 (11 days ago)
parents 28a7087bc745
children
rev   line source
pankso@16378 1 # SliTaz package receipt.
pankso@16378 2
pankso@16378 3 PACKAGE="ntk"
pascal@24781 4 VERSION="1.3.1001"
pankso@16378 5 CATEGORY="x-window"
pankso@16378 6 SHORT_DESC="Fork of FLTK 1.3.0 with additional functionality."
pankso@16378 7 MAINTAINER="pankso@slitaz.org"
pankso@16378 8 LICENSE="LGPL"
pascal@16389 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@25594 10 WEB_SITE="https://web.archive.org/web/20230627102029/http://non.tuxfamily.org/"
pascal@24781 11 WGET_URL="https://github.com/falkTX/ntk/archive/refs/tags/v$VERSION.tar.gz"
pankso@16378 12 #HOST_ARCH="i486 arm"
pankso@16378 13
pankso@16378 14 DEPENDS="xorg-libXft cairo jpeg"
pankso@16378 15 BUILD_DEPENDS="xorg-libXft-dev cairo-dev jpeg-dev"
pankso@16378 16
pankso@16378 17 # Handle cross compilation
pankso@16378 18 case "$ARCH" in
pankso@16378 19 i?86) BUILD_DEPENDS="$BUILD_DEPENDS git python"
pankso@16378 20 esac
pankso@16378 21
pascal@24713 22 # What is the latest version available today?
pascal@24713 23 current_version()
pascal@24713 24 {
pascal@24713 25 wget -O - https://github.com/falkTX/ntk/tags 2>/dev/null | \
pascal@24713 26 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24713 27 }
pascal@24713 28
pankso@16378 29 # Rules to configure and make the package.
pankso@16378 30 compile_rules()
pankso@16378 31 {
pankso@16378 32 ./waf configure --prefix=/usr &&
pankso@16378 33 ./waf build &&
pankso@16378 34 ./waf install --destdir=${DESTDIR}
pankso@16378 35 }
pankso@16378 36
pankso@16378 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16378 38 genpkg_rules()
pankso@16378 39 {
pankso@16378 40 mkdir -p $fs/usr $fs/usr/lib
pankso@16378 41 cp -a $install/usr/bin $fs/usr
pankso@16378 42 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@16378 43 }