wok annotate azpainter1/receipt @ rev 25101

Use archive.org for some broken wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 21 15:09:15 2022 +0000 (2022-06-21)
parents 7dc646816bdc
children 343c093ad221
rev   line source
pascal@19955 1 # SliTaz package receipt.
pascal@19955 2
pascal@19955 3 PACKAGE="azpainter1"
pascal@19955 4 SOURCE="azpainter"
pascal@19955 5 VERSION="1.0.7"
pascal@19955 6 CATEGORY="graphics"
pascal@19955 7 SHORT_DESC="Full color painting software for illustration drawing."
pascal@19955 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@19955 9 LICENSE="GPL3 LGPL3"
pascal@19955 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
pascal@19955 11 WEB_SITE="https://osdn.net/projects/azpainter/"
pascal@25101 12 WGET_URL="https://web.archive.org/web/20171122010405if_/http://pumath.dl.osdn.jp/azpainter/64397/$TARBALL"
pascal@19955 13
pascal@19955 14 DEPENDS="xorg-libX11 xorg-libXext xorg-libXi freetype fontconfig libpng jpeg"
pascal@19955 15 BUILD_DEPENDS="xorg-dev freetype-dev fontconfig-dev libpng-dev jpeg-dev \
pascal@19955 16 zlib-dev"
pascal@19955 17
pascal@24541 18 # What is the latest version available today?
pascal@24541 19 current_version()
pascal@24541 20 {
pascal@24541 21 wget -O - https://github.com/Symbian9/azpainter/releases 2>/dev/null | \
pascal@24541 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24541 23 }
pascal@24541 24
pascal@19955 25 # Rules to configure and make the package.
pascal@19955 26 compile_rules()
pascal@19955 27 {
pascal@21121 28 sed -i -e 's|\(write_JFIF_header.*\)TRUE|\1boolean(TRUE)|' \
pascal@21121 29 -e 's/\(jpeg_.*\)TRUE/\1boolean(TRUE)/' azxclass/src/AXJPEG.cpp
pascal@19956 30 sed -i "s|/usr/local|$DESTDIR/usr|;s|gtk|echo &|;s|\$(MACRO) ||" Makefile
pascal@19955 31 make &&
pascal@19955 32 make DESTDIR=$DESTDIR install
pascal@19955 33 }
pascal@19955 34
pascal@19955 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@19955 36 genpkg_rules()
pascal@19955 37 {
pascal@19955 38 cp -a $install/usr $fs
pascal@19955 39 }