SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ctags"

# SliTaz package receipt.

PACKAGE="ctags"
VERSION="5.8"
CATEGORY="utilities"
SHORT_DESC="Generates an index file of language objects found in source files."
MAINTAINER="rocky@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://ctags.sourceforge.net/"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

BUILD_DEPENDS=""

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

# Rules to configure and make the package.
compile_rules()
{
    ./configure \
        --prefix=/usr \
        $CONFIGURE_ARGS &&
    make &&
    make prefix=$DESTDIR/usr install

    cook_pick_manpages ctags.1
}

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