wok-current annotate libsdl2/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 453c249b6219
children
rev   line source
pascal@17104 1 # SliTaz package receipt.
pascal@17104 2
pascal@17104 3 PACKAGE="libsdl2"
Hans-G?nter@24823 4 VERSION="2.0.20"
pascal@17104 5 CATEGORY="x-window"
Hans-G?nter@21293 6 SHORT_DESC="A cross-platform interactive media development library."
pascal@17104 7 MAINTAINER="tcg.thegamer@gmail.com"
pascal@17345 8 LICENSE="zlib/libpng"
Hans-G?nter@24823 9 WEB_SITE="https://libsdl.org/"
Hans-G?nter@24823 10 REPOLOGY="sdl2"
Hans-G?nter@21293 11
pascal@17104 12 TARBALL="SDL2-$VERSION.tar.gz"
Hans-G?nter@24823 13 WGET_URL="${WEB_SITE}release/${TARBALL}"
pascal@17104 14
Hans-G?nter@21293 15 DEPENDS="alsa-lib dbus mesa"
Hans-G?nter@21293 16 BUILD_DEPENDS="alsa-lib-dev dbus-dev mesa-dev mesa-wayland-dev pulseaudio-dev"
pascal@17104 17
pascal@24425 18 # What is the latest version available today?
pascal@24425 19 current_version()
pascal@24425 20 {
pascal@24425 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24425 22 sed "/devel/d;/latest/d;/SDL2-/!d;/tar/!d;s|.*SDL2-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24425 23 }
pascal@24425 24
pascal@17104 25 # Rules to configure and make the package.
pascal@17104 26 compile_rules()
pascal@17104 27 {
Hans-G?nter@21293 28 ./configure \
Hans-G?nter@21293 29 --prefix=/usr \
Hans-G?nter@21293 30 $CONFIGURE_ARGS &&
Hans-G?nter@24823 31 make &&
Hans-G?nter@24823 32 make install DESTDIR=$DESTDIR
pascal@17104 33 }
pascal@17104 34
pascal@17104 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17104 36 genpkg_rules()
pascal@17104 37 {
Hans-G?nter@24823 38 cook_copy_folders bin
Hans-G?nter@24823 39 cook_copy_files *.so*
pascal@17104 40 }