wok-6.x view slurm/receipt @ rev 25506

memtest, pack: cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 09 16:28:01 2023 +0000 (21 months ago)
parents 1df6fa555414
children
line source
1 # SliTaz package receipt.
3 PACKAGE="slurm"
4 VERSION="0.4.4"
5 CATEGORY="network"
6 SHORT_DESC="Realtime network interface monitor."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/mattthias/slurm/wiki"
10 REPOLOGY="slurm-monitor"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/mattthias/$PACKAGE/archive/upstream/$VERSION.tar.gz"
15 DEPENDS="ncurses"
16 BUILD_DEPENDS="meson ncurses-dev"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # 0.3.3 sed -i 's|lncurses|& -ltinfo|' *
28 # sed -i 's|slurm ncurses|slurm ncurses tinfo|' CMakeLists.txt
30 meson _build \
31 --prefix=/usr &&
32 ninja -C _build &&
33 ninja -C _build install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cook_copy_folders bin
40 }