wok view tuxpaint/receipt @ rev 25465

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 01 08:33:11 2022 +0000 (19 months ago)
parents cb67b4f8be05
children 29df00e1e19d
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="https://tuxpaint.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/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
31 sed '/DIR).(KDE_PREFIX).tuxpaint.desktop/{N;N;s|desktop; \\|&\n\t kbuildsycoca4; \\|;s|fi\n\tkbuildsycoca4|fi|}' \
32 -i Makefile
34 make -j1 PREFIX=/usr &&
35 make -j1 PREFIX=/usr DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/share
43 cp -a $install/etc $fs
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/lib $fs/usr
46 cp -a $install/usr/share/tuxpaint $fs/usr/share
47 }