wok annotate mrxvt/receipt @ rev 24402
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 08 16:59:06 2022 +0000 (2022-02-08) |
parents | 472c73874ee7 |
children | 50e162af45ee |
rev | line source |
---|---|
pankso@187 | 1 # SliTaz package receipt. |
pankso@187 | 2 |
pankso@187 | 3 PACKAGE="mrxvt" |
Hans-G?nter@21486 | 4 VERSION="0.5.4" |
pankso@187 | 5 CATEGORY="utilities" |
Hans-G?nter@21486 | 6 TAGS="terminal" |
Hans-G?nter@21486 | 7 SHORT_DESC="Terminal emulator with multi-tabs support." |
pankso@187 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15583 | 9 LICENSE="GPL2" |
Hans-G?nter@21486 | 10 WEB_SITE="https://sourceforge.net/projects/materm" |
Hans-G?nter@21486 | 11 |
Hans-G?nter@21486 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@15583 | 13 WGET_URL="$SF_MIRROR/materm/$TARBALL" |
pascal@15583 | 14 |
Hans-G?nter@21486 | 15 DEPENDS="expat fontconfig freetype jpeg libpng xorg-libICE \ |
Hans-G?nter@21486 | 16 xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp \ |
Hans-G?nter@21486 | 17 xorg-libXft xorg-libXpm xorg-libXrender zlib" |
Hans-G?nter@21486 | 18 BUILD_DEPENDS="freetype-dev jpeg-dev libpng-dev xorg-dev" |
pankso@187 | 19 |
pascal@24402 | 20 # What is the latest version available today? |
pascal@24402 | 21 current_version() |
pascal@24402 | 22 { |
pascal@24402 | 23 wget -O - 'https://sourceforge.net/projects/materm/files/mrxvt source/' 2>/dev/null | \ |
pascal@24402 | 24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24402 | 25 sed '/scope="row/!d;s|.*source/||;s|/.*||;q' |
pascal@24402 | 26 } |
pascal@24402 | 27 |
pankso@187 | 28 # Rules to configure and make the package. |
pankso@187 | 29 compile_rules() |
pankso@187 | 30 { |
Hans-G?nter@21486 | 31 ./configure \ |
Hans-G?nter@21486 | 32 --prefix=/usr \ |
Hans-G?nter@21486 | 33 --infodir=/usr/share/info \ |
Hans-G?nter@21486 | 34 --mandir=/usr/share/man \ |
Hans-G?nter@21486 | 35 --enable-xft \ |
Hans-G?nter@21486 | 36 --enable-menubar \ |
pascal@1516 | 37 $CONFIGURE_ARGS && |
pascal@1516 | 38 make && |
pascal@15583 | 39 make DESTDIR=$DESTDIR install |
pankso@187 | 40 } |
pankso@187 | 41 |
pankso@187 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@187 | 43 genpkg_rules() |
pankso@187 | 44 { |
pankso@187 | 45 mkdir -p $fs/usr |
pascal@15583 | 46 cp -a $install/usr/bin $fs/usr |
pankso@187 | 47 } |