wok-6.x annotate libsdl2-mixer/receipt @ rev 24447
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 17:51:14 2022 +0000 (2022-02-14) |
parents | 4edee500eec9 |
children |
rev | line source |
---|---|
tcg@17135 | 1 # SliTaz package receipt. |
tcg@17135 | 2 |
tcg@17135 | 3 PACKAGE="libsdl2-mixer" |
Hans-G?nter@21303 | 4 VERSION="2.0.4" |
tcg@17135 | 5 CATEGORY="development" |
tcg@17135 | 6 SHORT_DESC="A multichannel sample and music mixer." |
tcg@17135 | 7 MAINTAINER="tcg.thegamer@gmail.com" |
tcg@17135 | 8 LICENSE="LGPL2.1" |
Hans-G?nter@21303 | 9 WEB_SITE="http://www.libsdl.org/projects/SDL_mixer/" |
Hans-G?nter@21303 | 10 |
Hans-G?nter@21303 | 11 SOURCE="SDL2_mixer" |
tcg@17135 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
tcg@17135 | 13 WGET_URL="http://www.libsdl.org/projects/SDL_mixer/release/$TARBALL" |
Hans-G?nter@21303 | 14 |
Hans-G?nter@21303 | 15 DEPENDS="libmad libogg libsdl2 libvorbis" |
Hans-G?nter@21303 | 16 BUILD_DEPENDS="libmad-dev libogg-dev libsdl2 libsdl2-dev libvorbis-dev" |
Hans-G?nter@21303 | 17 |
tcg@17135 | 18 HOST_ARCH="i486 arm" |
tcg@17135 | 19 |
pascal@24447 | 20 # What is the latest version available today? |
pascal@24447 | 21 current_version() |
pascal@24447 | 22 { |
pascal@24447 | 23 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24447 | 24 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 25 } |
pascal@24447 | 26 |
tcg@17135 | 27 # Rules to configure and make the package. |
tcg@17135 | 28 compile_rules() |
tcg@17135 | 29 { |
Hans-G?nter@21303 | 30 ./configure \ |
Hans-G?nter@21303 | 31 --prefix=/usr \ |
Hans-G?nter@21303 | 32 --enable-music-mp3-mad \ |
tcg@17135 | 33 $CONFIGURE_ARGS && |
Hans-G?nter@21303 | 34 make -j 1 && |
Hans-G?nter@21303 | 35 make install |
tcg@17135 | 36 } |
tcg@17135 | 37 |
tcg@17135 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
tcg@17135 | 39 genpkg_rules() |
tcg@17135 | 40 { |
tcg@17135 | 41 mkdir -p $fs/usr/lib |
tcg@17135 | 42 cp -a $install/usr/lib/*.so* $fs/usr/lib |
tcg@17135 | 43 } |