wok annotate glm/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents a540ef638b81
children e6b809c621b6
rev   line source
slaxemulator@13124 1 # SliTaz package receipt.
slaxemulator@13124 2
slaxemulator@13124 3 PACKAGE="glm"
Hans-G?nter@22854 4 VERSION="0.9.9.7"
slaxemulator@13124 5 CATEGORY="development"
Hans-G?nter@20975 6 SHORT_DESC="C++ mathematics library for 3D software based on the OpenGL Shading Language (GLSL) specification."
slaxemulator@13124 7 MAINTAINER="slaxemulator@gmail.com"
slaxemulator@13124 8 LICENSE="GPL"
Hans-G?nter@22854 9 WEB_SITE="https://glm.g-truc.net/"
Hans-G?nter@20975 10
Hans-G?nter@20975 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@20975 12 WGET_URL="https://github.com/g-truc/$PACKAGE/archive/$VERSION.tar.gz"
slaxemulator@13124 13
pascal@24055 14 current_version()
pascal@24055 15 {
pascal@24055 16 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 17 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 18 }
pascal@24055 19
slaxemulator@13124 20 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@13124 21 genpkg_rules()
slaxemulator@13124 22 {
Hans-G?nter@22854 23 mkdir -p $fs/usr/include
Hans-G?nter@22854 24 mkdir -p $fs/usr/share/doc
Hans-G?nter@22854 25
Hans-G?nter@20975 26 cp -a $src/glm $fs/usr/include
Hans-G?nter@20975 27 cp -a $src/doc $fs/usr/share/doc/glm
Hans-G?nter@22854 28 rm -f $fs/usr/include/glm/CMakeLists.txt
slaxemulator@13124 29 }