wok view ploticus/receipt @ rev 25442

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 02 16:30:36 2022 +0000 (2022-09-02)
parents e7c057e9eeda
children 7dd01dedad38
line source
1 # SliTaz package receipt.
3 PACKAGE="ploticus"
4 VERSION="2.42"
5 CATEGORY="misc"
6 SHORT_DESC="Data display engine."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="http://ploticus.sourceforge.net/"
11 #SOURCE="pl240src"
12 TARBALL="${PACKAGE}${VERSION/./}_src.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="zlib xorg libpng"
16 BUILD_DEPENDS="zlib-dev xorg-dev libpng-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/ploticus/files/ploticus/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/ploticus/||;s|/.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cd $src/src
30 make || return 1
31 mkdir -p $DESTDIR/usr/bin
32 cp pl $DESTDIR/usr/bin
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $install/usr $fs
39 }