SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "bison"

# SliTaz package receipt.

PACKAGE="bison"
VERSION="3.8.2"
CATEGORY="development"
TAGS="parser language"
SHORT_DESC="GNU parser generator."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
WEB_SITE="https://www.gnu.org/software/bison/"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="https://ftp.gnu.org/gnu/$PACKAGE/$TARBALL"

SUGGESTED="bison-lang"
DEPENDS="m4"
BUILD_DEPENDS="m4"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure        \
        $CONFIGURE_ARGS &&
    make &&
    make install

#    2.6.5
#    echo '#define YYENABLE_NLS 1' >> config.h &&
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share

    cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/lib            $fs/usr
    cp -a $install/usr/share/aclocal    $fs/usr/share
    cp -a $install/usr/share/bison        $fs/usr/share
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)