wok view fish/receipt @ rev 25442
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 02 16:30:36 2022 +0000 (2022-09-02) |
parents | 0748b6362df7 |
children | 20ad21d5532c |
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 current_version()
19 {
20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
22 }
24 compile_rules()
25 {
26 export CC=gcc-83
27 export CXX=g++-83
28 mkdir _build
29 cd _build
30 cmake .. \
31 -D CMAKE_INSTALL_PREFIX=/usr &&
32 make install DESTDIR=$DESTDIR
33 }
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/etc $fs
41 cp -a $install/usr/share/fish $fs/usr/share
42 # moved to package fish-lang:
43 # cp -a $install/usr/share/locale $fs/usr/share
44 }