Receipt for: gujin

source
# SliTaz package receipt.

PACKAGE="gujin"
VERSION="2.8.7"
CATEGORY="base-system"
SHORT_DESC="Graphical real-mode bootloader."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://sourceforge.net/projects/gujin/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS=""
BUILD_DEPENDS=""

# What is the latest version available today?
current_version()
{
	wget -O - https://sourceforge.net/projects/gujin/files/gujin/ 2>/dev/null | \
	sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
	sed '/scope="row/!d;s|.*/gujin/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
	make -j 1 &&
	make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cp -a $install/sbin $fs
}