wok annotate jed/receipt @ rev 24984
Up ufr2 (2.40-2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 10 07:46:30 2022 +0000 (2022-05-10) |
parents | d3eb5f4b53ea |
children |
rev | line source |
---|---|
Bill@1023 | 1 # SliTaz package receipt. |
Bill@1023 | 2 |
Bill@1023 | 3 PACKAGE="jed" |
erjo@9949 | 4 VERSION="0.99-19" |
Bill@1023 | 5 CATEGORY="development" |
Bill@1023 | 6 SHORT_DESC="JED text editor" |
b1+slitaz@1802 | 7 MAINTAINER="b1+slitaz@nagel.org" |
pascal@15147 | 8 LICENSE="GPL2" |
Bill@1023 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Bill@1023 | 10 WEB_SITE="http://www.jedsoft.org/jed/" |
pascal@17869 | 11 WGET_URL="ftp://ftp.fu-berlin.de/pub/unix/editors/jed/v${VERSION%-*}/$TARBALL" |
pascal@17869 | 12 # ftp://space.mit.edu/pub/davis/jed/v${VERSION%-*}/$TARBALL" |
al@17501 | 13 TAGS="text-editor" |
Bill@1023 | 14 |
erjo@9949 | 15 DEPENDS="slang" |
erjo@9949 | 16 BUILD_DEPENDS="slang-dev" |
erjo@9949 | 17 |
pascal@24445 | 18 # What is the latest version available today? |
pascal@24445 | 19 current_version() |
pascal@24445 | 20 { |
pascal@24445 | 21 wget -O - https://www.jedsoft.org/releases/jed/ 2>/dev/null | \ |
pascal@24445 | 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24445 | 23 } |
pascal@24445 | 24 |
Bill@1023 | 25 # Rules to configure and make the package. |
Bill@1023 | 26 compile_rules() |
Bill@1023 | 27 { |
Bill@1023 | 28 JED_ROOT=/usr/share/jed ./configure --prefix=/usr $CONFIGURE_ARGS |
pascal@15147 | 29 make && |
pascal@15147 | 30 make -j1 DESTDIR=$DESTDIR install 2>&1 | grep -v xjed |
Bill@1023 | 31 } |
Bill@1023 | 32 |
Bill@1023 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
Bill@1023 | 34 genpkg_rules() |
Bill@1023 | 35 { |
Bill@1023 | 36 mkdir -p $fs/usr/share/jed |
pascal@15147 | 37 cp -a $install/usr/bin $fs/usr |
pascal@15147 | 38 cp -a $install/usr/share/jed/lib $fs/usr/share/jed |
Bill@1023 | 39 } |