wok annotate joe/receipt @ rev 25503

f3: include extra programs
author Hans-G?nter Theisgen
date Fri Jan 27 10:37:43 2023 +0100 (16 months ago)
parents 6bab837a85ec
children d3556b8f5c3d
rev   line source
pankso@9789 1 #Slitaz package receipt
pankso@9789 2
pankso@9789 3 PACKAGE="joe"
Hans-G?nter@21083 4 VERSION="4.6"
pankso@9789 5 CATEGORY="utilities"
Hans-G?nter@21083 6 TAGS="text-editor"
Hans-G?nter@21083 7 SHORT_DESC="Joe's Own Editor is an easy to use text editor, supporting syntax highlighting and UTF-8."
pascal@13024 8 MAINTAINER="threarth@yahoo.it"
pascal@15003 9 LICENSE="GPL"
Hans-G?nter@21083 10 WEB_SITE="https://joe-editor.sourceforge.io/"
Hans-G?nter@21083 11
pankso@9789 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21083 13 WGET_URL="$SF_MIRROR/joe-editor/$TARBALL"
pankso@9789 14
pankso@16060 15 DEPENDS="ncursesw"
pascal@23507 16 BUILD_DEPENDS="ncursesw-dev desktop-file-utils"
Hans-G?nter@21083 17 HOST_ARCH="i486 arm"
pankso@9789 18
pascal@24412 19 # What is the latest version available today?
pascal@24412 20 current_version()
pascal@24412 21 {
pascal@24412 22 wget -O - 'https://sourceforge.net/projects/joe-editor/files/JOE sources/' 2>/dev/null | \
pascal@24412 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24412 24 sed '/scope="row/!d;s|.*/joe-||;s|.tar.*||;q'
pascal@24412 25 }
pascal@24412 26
pankso@9789 27 # Rules to configure and make the package.
pankso@9789 28 compile_rules()
pankso@9789 29 {
Hans-G?nter@21083 30 ./configure \
Hans-G?nter@21083 31 --sysconfdir=/etc \
slaxemulator@10978 32 $CONFIGURE_ARGS &&
Hans-G?nter@21083 33 make -j 1 &&
Hans-G?nter@21083 34 make install
pankso@9789 35 }
pankso@9789 36
pankso@9789 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@9789 38 genpkg_rules()
pankso@9789 39 {
pankso@16060 40 mkdir -p $fs/usr/share
Hans-G?nter@21083 41
Hans-G?nter@21083 42 cp -a $install/etc $fs
Hans-G?nter@21083 43 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21083 44 cp -a $install/usr/share/joe $fs/usr/share
pankso@9789 45 }