wok-current view ntk/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | b7f1bd1b9ac7 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="ntk"
4 VERSION="1.3.1001"
5 CATEGORY="x-window"
6 SHORT_DESC="Fork of FLTK 1.3.0 with additional functionality."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://non.tuxfamily.org/"
11 WGET_URL="https://github.com/falkTX/ntk/archive/refs/tags/v$VERSION.tar.gz"
12 #HOST_ARCH="i486 arm"
14 DEPENDS="xorg-libXft cairo jpeg"
15 BUILD_DEPENDS="xorg-libXft-dev cairo-dev jpeg-dev"
17 # Handle cross compilation
18 case "$ARCH" in
19 i?86) BUILD_DEPENDS="$BUILD_DEPENDS git python"
20 esac
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - https://github.com/falkTX/ntk/tags 2>/dev/null | \
26 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./waf configure --prefix=/usr &&
33 ./waf build &&
34 ./waf install --destdir=${DESTDIR}
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr $fs/usr/lib
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 }