wok-6.x annotate linuxconsoletools/receipt @ rev 24565
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 25 22:15:31 2022 +0000 (2022-02-25) |
parents | 577b0f540d17 |
children | d4bdd9ac943a |
rev | line source |
---|---|
pascal@14174 | 1 # SliTaz package receipt. |
pascal@14174 | 2 |
pascal@14174 | 3 PACKAGE="linuxconsoletools" |
Hans-G?nter@23136 | 4 VERSION="1.7.0" |
pascal@14174 | 5 CATEGORY="system-tools" |
pascal@14174 | 6 SHORT_DESC="Configure joysticks, or connect legacy input devices." |
pascal@14174 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
Hans-G?nter@21364 | 9 WEB_SITE="https://sourceforge.net/projects/linuxconsole/" |
Hans-G?nter@21364 | 10 |
pascal@14174 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@14174 | 12 WGET_URL="$SF_MIRROR/linuxconsole/$TARBALL" |
pascal@14174 | 13 |
Hans-G?nter@23136 | 14 DEPENDS="gcc83-lib-base libsdl2" |
Hans-G?nter@23136 | 15 BUILD_DEPENDS="gcc83 libsdl2-dev" |
pascal@14174 | 16 |
pascal@24411 | 17 # What is the latest version available today? |
pascal@24411 | 18 current_version() |
pascal@24411 | 19 { |
pascal@24411 | 20 wget -O - https://sourceforge.net/projects/linuxconsole/files/ 2>/dev/null | \ |
pascal@24411 | 21 sed '/scope="row/!d;s|.*/linuxconsoletools-||;s|.tar.*||;q' |
pascal@24411 | 22 } |
pascal@24411 | 23 |
pascal@14174 | 24 # Rules to configure and make the package. |
pascal@14174 | 25 compile_rules() |
pascal@14174 | 26 { |
pascal@14174 | 27 export PREFIX=/usr |
Hans-G?nter@23136 | 28 |
Hans-G?nter@23136 | 29 make \ |
Hans-G?nter@23136 | 30 CC=gcc-83 \ |
Hans-G?nter@23136 | 31 CXX=g++-83 && |
pascal@14174 | 32 make DESTDIR=$DESTDIR install |
pascal@14174 | 33 } |
pascal@14174 | 34 |
pascal@14174 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14174 | 36 genpkg_rules() |
pascal@14174 | 37 { |
pascal@14174 | 38 mkdir -p $fs/usr/share |
Hans-G?nter@21364 | 39 |
Hans-G?nter@21364 | 40 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21364 | 41 cp -a $install/usr/share/joystick $fs/usr/share |
pascal@14174 | 42 } |