SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "goaccess"

# SliTaz package receipt.

PACKAGE="goaccess"
VERSION="1.5.5"
CATEGORY="network"
SHORT_DESC="Visual web log analyzer."
MAINTAINER="paul@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://goaccess.io"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://tar.goaccess.io/$TARBALL"

DEPENDS="geoip ncurses"
BUILD_DEPENDS="geoip-dev glib-dev ncurses-dev pkg-config"

# What is the latest version available today?
current_version()
{
    wget -O - https://goaccess.io/download 2>/dev/null | \
    sed '/goaccess-[0-9]/!d;s|.*goaccess-||;s|.tar.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure            \
        --prefix=/usr        \
        --enable-geoip=legacy    \
        --enable-utf8 &&

    # 1.5.5 not needed
    # hack for curses.h path
#    mkdir /usr/include/ncursesw && ln -s /usr/include/curses.h /usr/include/ncursesw/curses.h

    make &&
    make install DESTDIR=$DESTDIR

    # and remove hack
#    rm -rf /usr/include/ncursesw
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)