wok annotate lesstif/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (24 months ago)
parents 86790a278e70
children ad0bc3efbf37
rev   line source
rcx@3263 1 # SliTaz package receipt.
rcx@3263 2
rcx@3263 3 PACKAGE="lesstif"
rcx@3263 4 VERSION="0.95.2"
pankso@3608 5 CATEGORY="x-window"
rcx@3263 6 SHORT_DESC="An LGPL clone of Motif, which is a set of GUI widgets."
rcx@3263 7 MAINTAINER="rcx@zoominternet.net"
pascal@15001 8 LICENSE="GPL2"
pascal@15001 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@20421 10 WEB_SITE="https://sourceforge.net/projects/lesstif/"
pascal@15001 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@16584 12 #HOST_ARCH="arm i486"
pascal@15001 13
pascal@5003 14 DEPENDS="glibc-base xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \
pankso@16583 15 xorg-libXdmcp xorg-libXext xorg-libXt util-linux-uuid freetype xorg-libXp"
pankso@16583 16 BUILD_DEPENDS="xorg-xextproto util-linux-uuid-dev automake"
rcx@3263 17
pascal@24411 18 # What is the latest version available today?
pascal@24411 19 current_version()
pascal@24411 20 {
pascal@24411 21 wget -O - https://sourceforge.net/projects/lesstif/files/lesstif/ 2>/dev/null | \
pascal@24411 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24411 23 sed '/scope="row/!d;s|.*/lesstif/||;s|/.*||;q'
pascal@24411 24 }
pascal@24411 25
rcx@3263 26 # Rules to configure and make the package.
rcx@3263 27 compile_rules()
rcx@3263 28 {
rcx@3263 29 ./configure \
rcx@3263 30 --prefix=/usr \
rcx@3263 31 --infodir=/usr/share/info \
rcx@3263 32 --mandir=/usr/share/man \
rcx@3263 33 --includedir=/usr/include \
rcx@3263 34 $CONFIGURE_ARGS &&
rcx@3263 35 make &&
pascal@15001 36 make -j 1 DESTDIR=$DESTDIR install
rcx@3263 37 }
rcx@3263 38
rcx@3263 39 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3263 40 genpkg_rules()
rcx@3263 41 {
rcx@3263 42 mkdir -p $fs/usr/lib
pascal@15001 43 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@15001 44 cp -a $install/usr/lib/LessTif $fs/usr/lib
pascal@15001 45 cp -a $install/usr/lib/X11 $fs/usr/lib
pascal@15001 46 cp -a $install/usr/bin $fs/usr
rcx@3263 47 }
rcx@3263 48