wok annotate xpaint/receipt @ rev 24779

thttpd: race condition
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 19 18:08:11 2022 +0000 (2022-03-19)
parents fc48947e1c50
children 7dd01dedad38
rev   line source
pascal@13915 1 # SliTaz package receipt.
pascal@13915 2
pascal@13915 3 PACKAGE="xpaint"
Hans-G?nter@22305 4 VERSION="2.10.2"
pascal@13915 5 CATEGORY="graphics"
Hans-G?nter@22305 6 SHORT_DESC="Simple paint program for X."
pascal@13915 7 MAINTAINER="mojo@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
pankso@16478 9 WEB_SITE="http://sf-xpaint.sourceforge.net/"
Hans-G?nter@22305 10
pascal@13915 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@22305 12 WGET_URL="$SF_MIRROR/sf-$PACKAGE/files/$TARBALL"
Hans-G?nter@22305 13
Hans-G?nter@22305 14 DEPENDS="libXaw3dXft openjpeg"
Hans-G?nter@22305 15 BUILD_DEPENDS="expat-dev jpeg-dev libpng-dev libtool libXaw3dXft-dev
Hans-G?nter@22305 16 libxml2-dev openjpeg-dev tiff-dev util-linux-uuid-dev"
Hans-G?nter@22305 17
pankso@16478 18 HOST_ARCH="i486 arm"
pascal@13915 19
pascal@24108 20 current_version()
pascal@24108 21 {
pascal@24108 22 wget -O - https://sourceforge.net/projects/sf-xpaint/files/ 2>/dev/null | \
pascal@24108 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24108 24 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q"
pascal@24108 25 }
pascal@24108 26
pascal@13915 27 # Rules to configure and make the package.
pascal@13915 28 compile_rules()
pascal@13915 29 {
pankso@16479 30 case "$ARCH" in
pankso@16480 31 i?86) LIBTOOL=libtool ;;
pankso@16479 32 arm) LIBTOOL=${HOST_SYSTEM}-libtool ;;
pankso@16479 33 esac
Hans-G?nter@22305 34
Hans-G?nter@22305 35 ./configure \
Hans-G?nter@22305 36 --enable-tiff=no \
Hans-G?nter@22305 37 $CONFIGURE_ARGS &&
Hans-G?nter@22305 38
pankso@16478 39 # Fix cross compilation
Hans-G?nter@22305 40 sed -i s'/$(CC) substads.c/gcc substads.c/' \
Hans-G?nter@22305 41 Makefile &&
Hans-G?nter@22305 42 sed -i s'/$(CC) preproc.c/gcc preproc.c/' \
Hans-G?nter@22305 43 Makefile &&
Hans-G?nter@22305 44
Hans-G?nter@22305 45 make -j 1 LIBTOOL=${LIBTOOL} &&
Hans-G?nter@22305 46 make install
pascal@13915 47 }
pascal@13915 48
pascal@13915 49 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13915 50 genpkg_rules()
pascal@13915 51 {
Hans-G?nter@22305 52 mkdir -p $fs/usr/lib
Hans-G?nter@22305 53 mkdir -p $fs/usr/share/pixmaps
Hans-G?nter@22305 54
Hans-G?nter@22305 55 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22305 56 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@22305 57 cp -a $install/usr/share/xpaint $fs/usr/share
Hans-G?nter@22305 58
pankso@16482 59 rm -r $fs/usr/share/xpaint/include
Hans-G?nter@22305 60
Hans-G?nter@22305 61 cp $stuff/xpaint.xpm $fs/usr/share/pixmaps
pascal@13915 62 }