wok annotate ht/receipt @ rev 25482

created recipe for py3k-cparser
author Hans-G?nter Theisgen
date Mon Oct 17 07:46:10 2022 +0100 (2022-10-17)
parents 7dd01dedad38
children
rev   line source
pascal@4382 1 # SliTaz package receipt.
pascal@4382 2
pascal@4382 3 PACKAGE="ht"
pascal@18360 4 VERSION="2.1.0"
pascal@4382 5 CATEGORY="development"
pascal@4382 6 SHORT_DESC="File viewer/editor/analyser for text/binary/executable files."
pascal@4382 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15600 8 LICENSE="GPL2"
pascal@18360 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@25465 10 WEB_SITE="https://github.com/sebastianbiallas/ht"
pascal@4382 11 WGET_URL="$SF_MIRROR/hte/$TARBALL"
al@19168 12 TAGS="viewer text-editor analysis"
pascal@15600 13
pascal@4382 14 DEPENDS="gcc-lib-base lzo ncurses xorg-libX11 xorg-libXau xorg-libXdmcp"
pascal@4382 15 BUILD_DEPENDS="lzo-dev ncurses-dev"
pascal@4382 16
pascal@24412 17 # What is the latest version available today?
pascal@24412 18 current_version()
pascal@24412 19 {
pascal@24412 20 wget -O - https://sourceforge.net/projects/hte/files/ht-source/ 2>/dev/null | \
pascal@24412 21 sed '/scope="row/!d;/tar/!d;s|.*/ht-||;s|.tar.*||;q'
pascal@24412 22 }
pascal@24412 23
pascal@4382 24 # Rules to configure and make the package.
pascal@4382 25 compile_rules()
pascal@4382 26 {
pascal@17670 27 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
pascal@4382 28 chmod +x install-sh
pascal@4382 29 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@17502 30 --mandir=/usr/share/man \
pascal@4382 31 $CONFIGURE_ARGS &&
pascal@4382 32 make &&
pascal@15600 33 make DESTDIR=$DESTDIR install
pascal@4382 34 }
pascal@4382 35
pascal@4382 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4382 37 genpkg_rules()
pascal@4382 38 {
pascal@15600 39 cp -a $install/usr $fs
pascal@4382 40 }