wok view fish/receipt @ rev 25599

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 13:38:12 2023 +0000 (10 months ago)
parents b15d3d872ae2
children
line source
1 # SliTaz package receipt.
3 PACKAGE="fish"
4 VERSION="3.3.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="The FrIendly SHell."
7 MAINTAINER="tcg.thegamer@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://fishshell.com"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://github.com/fish-shell/fish-shell/releases/download/$VERSION/$TARBALL"
14 SUGGESTED="fish-doc fish-lang"
15 DEPENDS="gcc83-lib-base ncurses"
16 BUILD_DEPENDS="cmake gcc83 ncurses-dev ncursesw-extra"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export CC=gcc-83
29 export CXX=g++-83
30 mkdir _build
31 cd _build
32 cmake .. \
33 -D CMAKE_INSTALL_PREFIX=/usr &&
34 make install DESTDIR=$DESTDIR
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/etc $fs
44 cp -a $install/usr/share/fish $fs/usr/share
45 # moved to package fish-lang:
46 # cp -a $install/usr/share/locale $fs/usr/share
47 }