wok view joe/receipt @ rev 25102
Use archive.org for some broken wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 21 16:00:20 2022 +0000 (2022-06-21) |
parents | 6bab837a85ec |
children | d3556b8f5c3d |
line source
1 #Slitaz package receipt
3 PACKAGE="joe"
4 VERSION="4.6"
5 CATEGORY="utilities"
6 TAGS="text-editor"
7 SHORT_DESC="Joe's Own Editor is an easy to use text editor, supporting syntax highlighting and UTF-8."
8 MAINTAINER="threarth@yahoo.it"
9 LICENSE="GPL"
10 WEB_SITE="https://joe-editor.sourceforge.io/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/joe-editor/$TARBALL"
15 DEPENDS="ncursesw"
16 BUILD_DEPENDS="ncursesw-dev desktop-file-utils"
17 HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - 'https://sourceforge.net/projects/joe-editor/files/JOE sources/' 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*/joe-||;s|.tar.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --sysconfdir=/etc \
32 $CONFIGURE_ARGS &&
33 make -j 1 &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share
42 cp -a $install/etc $fs
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/share/joe $fs/usr/share
45 }