# SliTaz package receipt. PACKAGE="bvi" VERSION="1.4.1" CATEGORY="development" TAGS="binary development editor hex vi" SHORT_DESC="Binary VIsual (hex editor) based on the vi texteditor." MAINTAINER="hackdorte@sapo.pt" LICENSE="GPL2" WEB_SITE="https://bvi.sourceforge.net" TARBALL="$PACKAGE-$VERSION.src.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="ncurses" BUILD_DEPENDS="ncurses-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/bvi/files/bvi/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/bvi/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ --with-ncurses \ $CONFIGURE_ARGS && make $MAKEFLAGS && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules(){ mkdir -p $fs/usr/bin mkdir -p $fs/usr/share cp -a $install/usr/bin/* $fs/usr/bin cp -a $install/usr/share/* $fs/usr/share }