wok-6.x view xwax/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 | d7bacc22f5eb |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="xwax"
4 VERSION="1.7"
5 CATEGORY="multimedia"
6 SHORT_DESC="An open-source Digital Vinyl System (DVS) for Linux."
7 MAINTAINER="Lucas Levrel <llev@slitaz.org>"
8 LICENSE="GPL2"
9 WEB_SITE="https://xwax.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}releases/$TARBALL"
14 DEPENDS="alsa-lib libsdl libsdl-ttf"
15 BUILD_DEPENDS="alsa-lib-dev libsdl-dev libsdl-ttf-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed '/version/!d;s|.*version ||;s|<.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --enable-alsa \
29 --prefix /usr \
30 $CONFIGURE_ARGS &&
31 LDFLAGS=-Os make &&
32 make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $install/* $fs
39 }