wok annotate gource/receipt @ rev 24974

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 02 11:23:24 2022 +0000 (2022-05-02)
parents 25abe1edd77f
children 20ad21d5532c
rev   line source
slaxemulator@9430 1 # SliTaz package receipt.
slaxemulator@9430 2
slaxemulator@9430 3 PACKAGE="gource"
Hans-G?nter@22871 4 VERSION="0.51"
slaxemulator@9430 5 CATEGORY="development"
Hans-G?nter@20989 6 SHORT_DESC="Software version control visualization."
slaxemulator@9430 7 MAINTAINER="slaxemulator@gmail.com"
pascal@14999 8 LICENSE="GPL3"
Hans-G?nter@20989 9 WEB_SITE="https://gource.io/"
Hans-G?nter@20989 10
slaxemulator@9430 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@20989 12 WGET_URL="https://github.com/acaudwell/Gource/releases/download/$PACKAGE-$VERSION/$TARBALL"
slaxemulator@9430 13
Hans-G?nter@20989 14 DEPENDS="freetype ftgl glew libboost-filesystem libsdl2 libsdl2-image pcre"
Hans-G?nter@22871 15 BUILD_DEPENDS="freetype-dev ftgl-dev glew-dev glm libboost-filesystem-dev
Hans-G?nter@20989 16 libsdl2-dev libsdl2-image-dev mesa-dev pcre-dev"
pascal@10505 17
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/gource-\(.*\).tar.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
slaxemulator@9430 24 # Rules to configure and make the package.
slaxemulator@9430 25 compile_rules()
slaxemulator@9430 26 {
slaxemulator@10124 27 ./configure $CONFIGURE_ARGS &&
Hans-G?nter@22871 28 make &&
Hans-G?nter@20989 29 make install
slaxemulator@9430 30 }
slaxemulator@9430 31
slaxemulator@9430 32 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9430 33 genpkg_rules()
slaxemulator@9430 34 {
slaxemulator@9430 35 mkdir -p $fs/usr/share
Hans-G?nter@22871 36
Hans-G?nter@20989 37 cp -a $install/usr/bin $fs/usr
Hans-G?nter@20989 38 cp -a $install/usr/share/gource $fs/usr/share
slaxemulator@9430 39 }