wok view tuxpaint/receipt @ rev 24082

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 09 18:20:09 2021 +0000 (2021-07-09)
parents d77c5aa90982
children 9288c215c7c2
line source
1 # SliTaz package receipt.
3 PACKAGE="tuxpaint"
4 VERSION="0.9.23"
5 CATEGORY="graphics"
6 SHORT_DESC="Drawing program designed for young children."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://tuxpaint.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://downloads.sourceforge.net/sourceforge/$PACKAGE/$TARBALL"
14 DEPENDS="cairo fribidi libpaper libpng librsvg libsdl-image libsdl-mixer \
15 libsdl-pango libsdl-ttf python"
16 BUILD_DEPENDS="cairo-dev fribidi-dev gperf kdelibs libpaper-dev libpng-dev
17 libQtSvg librsvg-dev libsdl-dev libsdl-image-dev libsdl-mixer-dev
18 libsdl-pango-dev libsdl-ttf-dev python-dev"
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i 's/$(ARCH_LINKS)/$(ARCH_LINKS) -lpng/' Makefile
32 make -j1 PREFIX=/usr &&
33 make PREFIX=/usr DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
41 cp -a $install/etc $fs
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib $fs/usr
44 cp -a $install/usr/share/tuxpaint $fs/usr/share
45 }