wok-6.x annotate nathive/receipt @ rev 25542

linux-cloop: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 11 09:15:29 2023 +0000 (20 months ago)
parents 2b9f96603415
children
rev   line source
jozee@2730 1 # SliTaz package receipt.
jozee@2730 2
jozee@2730 3 PACKAGE="nathive"
pascal@13347 4 VERSION="0.924"
jozee@2730 5 CATEGORY="graphics"
jozee@2730 6 SHORT_DESC="lightweight image editor"
jozee@2730 7 MAINTAINER="jozee@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
pascal@13347 9 TARBALL="$PACKAGE-$VERSION.tgz"
jozee@2730 10 WEB_SITE="http://www.nathive.org/"
pascal@13347 11 WGET_URL="${WEB_SITE}dl/$TARBALL"
jozee@4969 12 TAGS="image photo editor"
jozee@2730 13
pascal@13348 14 DEPENDS="gtk+ python"
pascal@13348 15 BUILD_DEPENDS="pkg-config gtk+-dev python-dev coreutils-operations"
pascal@13348 16
pascal@24436 17 # What is the latest version available today?
pascal@24436 18 current_version()
pascal@24436 19 {
pascal@24436 20 wget -O - http://www.nathive.org/download 2>/dev/null | \
pascal@24436 21 sed '/ource tarball/d;/.*nathive-[0-9]/!d;/tgz/!d;s|.*nathive-||;s|.tgz.*||;/-/d;q'
pascal@24436 22 }
pascal@24436 23
jozee@2730 24 # Rules to configure and make the package.
jozee@2730 25 compile_rules()
jozee@2730 26 {
jozee@2730 27 cd $src
pascal@13348 28 sed -i "s|^BASE.*|BASE = $DESTDIR/usr/|;s|nathive.sh|nathive.py|" makefile
pascal@13348 29 make install
jozee@2730 30 }
jozee@2730 31
jozee@2730 32 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2730 33 genpkg_rules()
jozee@2730 34 {
pascal@13348 35 cp -a $install/usr $fs
jozee@2730 36 }