wok-6.x view glm/receipt @ rev 24453

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