wok-current view tuxpaint/receipt @ rev 24085

tuxpaint: do not run kbuildsycoca4 without kde
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 10 14:52:46 2021 +0000 (2021-07-10)
parents 4bae0fb81a17
children 9773d49d458c
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
31 patch -p0 < $stuff/Makefile.u
33 make -j1 PREFIX=/usr &&
34 make -j1 PREFIX=/usr DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share
42 cp -a $install/etc $fs
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/lib $fs/usr
45 cp -a $install/usr/share/tuxpaint $fs/usr/share
46 }