wok view tty-clock/receipt @ rev 24056
Up zstd (1.5.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 09:29:15 2021 +0000 (2021-06-08) |
parents | 2ad68c5f19e1 |
children | ac8ca9758df1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="tty-clock"
4 VERSION="2.3"
5 CATEGORY="utilities"
6 TAGS="clock"
7 SHORT_DESC="Analog ncurses clock."
8 MAINTAINER="paul@slitaz.org"
9 LICENSE="BSD"
11 WEB_SITE="https://github.com/xorg62/tty-clock"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
15 DEPENDS="ncurses"
16 BUILD_DEPENDS="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 patch --input=$stuff/patches/Makefile-2.3 $src/Makefile
29 make PREFIX=/usr
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/bin
36 cp -a $src/$PACKAGE $fs/usr/bin
37 }