wok view xpaint/receipt @ rev 25696

created recipe for dool
author Hans-G?nter Theisgen
date Sat May 11 17:17:55 2024 +0100 (6 months ago)
parents cec9f8f5726d
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xpaint"
4 VERSION="2.10.2"
5 CATEGORY="graphics"
6 SHORT_DESC="Simple paint program for X."
7 MAINTAINER="mojo@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://sf-xpaint.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/sf-$PACKAGE/files/$TARBALL"
14 DEPENDS="libXaw3dXft openjpeg"
15 BUILD_DEPENDS="expat-dev jpeg-dev libpng-dev libtool libXaw3dXft-dev
16 libxml2-dev openjpeg-dev tiff-dev util-linux-uuid-dev"
18 HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://sourceforge.net/projects/sf-xpaint/files/ 2>/dev/null | \
24 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
25 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q"
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 case "$ARCH" in
32 i?86) LIBTOOL=libtool ;;
33 arm) LIBTOOL=${HOST_SYSTEM}-libtool ;;
34 esac
36 ./configure \
37 --enable-tiff=no \
38 $CONFIGURE_ARGS &&
40 # Fix cross compilation
41 sed -i s'/$(CC) substads.c/gcc substads.c/' \
42 Makefile &&
43 sed -i s'/$(CC) preproc.c/gcc preproc.c/' \
44 Makefile &&
46 make -j 1 LIBTOOL=${LIBTOOL} &&
47 make install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/lib
54 mkdir -p $fs/usr/share/pixmaps
56 cp -a $install/usr/bin $fs/usr
57 cp -a $install/usr/lib/*.so* $fs/usr/lib
58 cp -a $install/usr/share/xpaint $fs/usr/share
60 rm -r $fs/usr/share/xpaint/include
62 cp $stuff/xpaint.xpm $fs/usr/share/pixmaps
63 }