wok-current annotate leafpad/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents f68aece3ada3
children
rev   line source
pankso@42 1 # SliTaz package receipt.
pankso@42 2
pankso@42 3 PACKAGE="leafpad"
slaxemulator@7807 4 VERSION="0.8.18.1"
pankso@201 5 CATEGORY="utilities"
pankso@42 6 SHORT_DESC="GTK simple text editor."
pankso@42 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pankso@42 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@42 10 WEB_SITE="http://tarot.freeshell.org/leafpad/"
pankso@42 11 WGET_URL="http://savannah.nongnu.org/download/$PACKAGE/$TARBALL"
al@17501 12 TAGS="text-editor"
pankso@16248 13 HOST_ARCH="i486 arm"
al@17382 14 GENERIC_PIXMAPS="no"
pankso@42 15
pascal@15000 16 DEPENDS="gtk+ xorg-libXdamage"
pankso@16248 17 BUILD_DEPENDS="gtk+-dev xorg-libXrender-dev xorg-xproto"
pascal@15000 18
pascal@24070 19 current_version()
pascal@24070 20 {
pascal@24070 21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24070 22 sed '/href="'$PACKAGE'-[0-9]/!d;/tar/!d;s|.*>'$PACKAGE'-||;s|.tar.*||' | \
pascal@24070 23 sort -Vr | sed q
pascal@24070 24 }
pascal@24070 25
pankso@42 26 # Rules to configure and make the package.
pankso@42 27 compile_rules()
pankso@42 28 {
pankso@16248 29 chmod +x install-sh
al@19129 30 patch -p1 -i $stuff/icon.patch
al@19129 31
al@19129 32 ./configure $CONFIGURE_ARGS && make && make install
pankso@42 33 }
pankso@42 34
pankso@42 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@42 36 genpkg_rules()
pankso@42 37 {
al@19129 38 mkdir -p $fs/usr
al@17382 39 cp -a $install/usr/bin $fs/usr
pankso@42 40 }