wok-6.x annotate bvi/receipt @ rev 25322
cpige: remove -static
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 22 07:58:08 2022 +0000 (2022-07-22) |
parents | acd67c0473fb |
children | b0069c845544 |
rev | line source |
---|---|
hackdorte@19195 | 1 # SliTaz package receipt. |
hackdorte@19195 | 2 |
hackdorte@19195 | 3 PACKAGE="bvi" |
Hans-G?nter@22572 | 4 VERSION="1.4.1" |
hackdorte@19195 | 5 CATEGORY="development" |
Hans-G?nter@22572 | 6 TAGS="binary development editor hex vi" |
hackdorte@19195 | 7 SHORT_DESC="Binary VIsual (hex editor) based on the vi texteditor." |
hackdorte@19195 | 8 MAINTAINER="hackdorte@sapo.pt" |
hackdorte@19195 | 9 LICENSE="GPL2" |
Hans-G?nter@22572 | 10 WEB_SITE="http://bvi.sourceforge.net" |
Hans-G?nter@22572 | 11 |
hackdorte@19195 | 12 TARBALL="$PACKAGE-$VERSION.src.tar.gz" |
hackdorte@19195 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
hackdorte@19195 | 14 |
hackdorte@19195 | 15 DEPENDS="ncurses" |
hackdorte@19195 | 16 |
hackdorte@19195 | 17 BUILD_DEPENDS="ncurses-dev" |
hackdorte@19195 | 18 |
pascal@24340 | 19 # What is the latest version available today? |
pascal@24340 | 20 current_version() |
pascal@24340 | 21 { |
pascal@24340 | 22 wget -O - https://sourceforge.net/projects/bvi/files/bvi/ 2>/dev/null | \ |
pascal@24340 | 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24340 | 24 sed '/scope="row/!d;s|.*/bvi/||;s|/.*||;q' |
pascal@24340 | 25 } |
pascal@24340 | 26 |
hackdorte@19195 | 27 # Rules to configure and make the package. |
hackdorte@19195 | 28 compile_rules() |
hackdorte@19195 | 29 { |
Hans-G?nter@22572 | 30 ./configure \ |
Hans-G?nter@22572 | 31 --prefix=/usr \ |
Hans-G?nter@22572 | 32 --mandir=/usr/share/man \ |
Hans-G?nter@22572 | 33 --with-ncurses \ |
Hans-G?nter@22572 | 34 $CONFIGURE_ARGS && |
Hans-G?nter@22572 | 35 make $MAKEFLAGS && |
Hans-G?nter@22572 | 36 make DESTDIR=$DESTDIR install |
hackdorte@19195 | 37 } |
hackdorte@19195 | 38 |
hackdorte@19195 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
hackdorte@19195 | 40 genpkg_rules(){ |
Hans-G?nter@22572 | 41 mkdir -p $fs/usr/bin |
Hans-G?nter@22572 | 42 mkdir -p $fs/usr/share |
hackdorte@19195 | 43 |
Hans-G?nter@22572 | 44 cp -a $install/usr/bin/* $fs/usr/bin |
Hans-G?nter@22572 | 45 cp -a $install/usr/share/* $fs/usr/share |
hackdorte@19195 | 46 } |