wok annotate libsdl2-net/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents 591d89fd6b00
children
rev   line source
tcg@17136 1 # SliTaz package receipt.
tcg@17136 2
tcg@17136 3 PACKAGE="libsdl2-net"
Hans-G?nter@21304 4 VERSION="2.0.1"
tcg@17136 5 CATEGORY="x-window"
tcg@17136 6 SHORT_DESC="SDL2 net support."
tcg@17136 7 MAINTAINER="tcg.thegamer@gmail.com"
tcg@17136 8 LICENSE="LGPL2.1"
Hans-G?nter@21304 9 WEB_SITE="http://www.libsdl.org/projects/SDL_net/"
Hans-G?nter@21304 10
Hans-G?nter@21304 11 SOURCE="SDL2_net"
tcg@17136 12 TARBALL="$SOURCE-$VERSION.tar.gz"
tcg@17136 13 WGET_URL="http://www.libsdl.org/projects/SDL_net/release/$TARBALL"
tcg@17136 14
tcg@17136 15 DEPENDS="libsdl2"
tcg@17136 16 BUILD_DEPENDS="libsdl2-dev"
tcg@17136 17
Hans-G?nter@21304 18 HOST_ARCH="i486 arm"
Hans-G?nter@21304 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@17136 27 # Rules to configure and make the package.
tcg@17136 28 compile_rules()
tcg@17136 29 {
Hans-G?nter@21304 30 ./configure $CONFIGURE_ARGS &&
Hans-G?nter@21304 31 make -j 1 &&
Hans-G?nter@21304 32 make install
tcg@17136 33 }
tcg@17136 34
tcg@17136 35 # Rules to gen a SliTaz package suitable for Tazpkg.
tcg@17136 36 genpkg_rules()
tcg@17136 37 {
tcg@17136 38 mkdir -p $fs/usr/lib
tcg@17136 39 cp -a $install/usr/lib/*.so* $fs/usr/lib
tcg@17136 40 }