wok-6.x view mesa-demos/receipt @ rev 24614
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 06 21:04:14 2022 +0000 (2022-03-06) |
parents | 89c8d8b6cf48 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="mesa-demos"
4 VERSION="8.0.1"
5 CATEGORY="development"
6 SHORT_DESC="Mesa GLX demos progs."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.mesa3d.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/demos/$VERSION/$TARBALL"
13 DEPENDS="glew"
14 BUILD_DEPENDS="glew-dev mesa-dev talloc-dev libegl-mesa pkg-config udev-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - 'https://gitlab.freedesktop.org/mesa/demos/-/tags?sort=updated_desc' 2>/dev/null | \
20 sed '/item-title/!d;s|.*">[a-z-]*||;s|<.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11"
29 ./configure \
30 --prefix=/usr \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/bin
40 cp $install/usr/bin/glxinfo $fs/usr/bin
41 cp $install/usr/bin/glxgears $fs/usr/bin
42 }