wok-6.x view smplayer-themes/receipt @ rev 24699
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 19:47:29 2022 +0000 (2022-03-13) |
parents | ac11c8298234 |
children | adaf06c5172f |
line source
1 # SliTaz package receipt.
3 PACKAGE="smplayer-themes"
4 VERSION="18.6.0"
5 CATEGORY="multimedia"
6 SHORT_DESC="Icon themes for smplayer."
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL2"
9 WEB_SITE="https://sourceforge.net/projects/smplayer/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/${PACKAGE/-themes/}/$TARBALL"
14 DEPENDS="smplayer"
15 BUILD_DEPENDS="Qt4-dev qmake"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/smplayer/files/SMPlayer/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/SMPlayer/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 make PREFIX=/usr &&
29 make PREFIX=/usr DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mv $install/* $fs
36 }