wok annotate quesoglc/receipt @ rev 24348
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 02 18:01:43 2022 +0000 (2022-02-02) |
parents | 03594717e598 |
children | 7dd01dedad38 |
rev | line source |
---|---|
slaxemulator@6550 | 1 # SliTaz package receipt. |
slaxemulator@6550 | 2 |
slaxemulator@6550 | 3 PACKAGE="quesoglc" |
slaxemulator@6550 | 4 VERSION="0.7.2" |
slaxemulator@6550 | 5 CATEGORY="x-window" |
slaxemulator@6550 | 6 SHORT_DESC="The OpenGL Character Renderer (GLC) is a state machine that provides OpenGL programs with character rendering services via an application programming interface (API)." |
slaxemulator@6550 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@14996 | 8 LICENSE="LGPL2.1" |
slaxemulator@6550 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@6550 | 10 WEB_SITE="http://quesoglc.sourceforge.net/" |
slaxemulator@6550 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@6550 | 12 |
pascal@13796 | 13 DEPENDS="freetype fontconfig freeglut fribidi mesa libglu-mesa expat \ |
pascal@13796 | 14 xorg-libXxf86vm libxcb" |
pascal@13796 | 15 BUILD_DEPENDS="$DEPENDS freetype-dev fontconfig-dev freeglut-dev fribidi-dev \ |
pascal@15016 | 16 mesa-dev expat-dev xorg-libXxf86vm-dev util-linux-uuid-dev libxcb-dev libxml2-dev" |
pascal@13796 | 17 |
pascal@24348 | 18 # What is the latest version available today? |
pascal@24348 | 19 current_version() |
pascal@24348 | 20 { |
pascal@24348 | 21 wget -O - https://sourceforge.net/projects/quesoglc/files/ 2>/dev/null | \ |
pascal@24348 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24348 | 23 sed '/scope="row/!d;s|.*/quesoglc-||;s|.tar.*||;q' |
pascal@24348 | 24 } |
pascal@24348 | 25 |
slaxemulator@6550 | 26 # Rules to configure and make the package. |
slaxemulator@6550 | 27 compile_rules() |
slaxemulator@6550 | 28 { |
slaxemulator@6550 | 29 cd $src |
slaxemulator@6550 | 30 ./configure \ |
slaxemulator@6550 | 31 --prefix=/usr \ |
slaxemulator@6550 | 32 --infodir=/usr/share/info \ |
slaxemulator@6550 | 33 --mandir=/usr/share/man \ |
slaxemulator@6550 | 34 $CONFIGURE_ARGS && |
pascal@13796 | 35 make && make DESTDIR=$DESTDIR install |
slaxemulator@6550 | 36 } |
slaxemulator@6550 | 37 |
slaxemulator@6550 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6550 | 39 genpkg_rules() |
slaxemulator@6550 | 40 { |
slaxemulator@6550 | 41 mkdir -p $fs/usr/lib |
pascal@13796 | 42 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@6550 | 43 } |