wok annotate fish/receipt @ rev 25697

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