wok-current view xpaint/receipt @ rev 25042
Up lzsa (1.3.12), zstd (1.5.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 01 08:14:05 2022 +0000 (2022-06-01) |
parents | fc48947e1c50 |
children | 7dd01dedad38 |
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="http://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 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/sf-xpaint/files/ 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 case "$ARCH" in
31 i?86) LIBTOOL=libtool ;;
32 arm) LIBTOOL=${HOST_SYSTEM}-libtool ;;
33 esac
35 ./configure \
36 --enable-tiff=no \
37 $CONFIGURE_ARGS &&
39 # Fix cross compilation
40 sed -i s'/$(CC) substads.c/gcc substads.c/' \
41 Makefile &&
42 sed -i s'/$(CC) preproc.c/gcc preproc.c/' \
43 Makefile &&
45 make -j 1 LIBTOOL=${LIBTOOL} &&
46 make install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/lib
53 mkdir -p $fs/usr/share/pixmaps
55 cp -a $install/usr/bin $fs/usr
56 cp -a $install/usr/lib/*.so* $fs/usr/lib
57 cp -a $install/usr/share/xpaint $fs/usr/share
59 rm -r $fs/usr/share/xpaint/include
61 cp $stuff/xpaint.xpm $fs/usr/share/pixmaps
62 }