SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "cortex"

# SliTaz package receipt.

PACKAGE="cortex"
VERSION="0.5.1_02102016"
CATEGORY="utilities"
SHORT_DESC="An ncurses reddit browser and monitor."
MAINTAINER="paul@slitaz.org"
LICENSE="MIT"
TARBALL="$PACKAGE-${VERSION#*_}.tar.bz2"
WEB_SITE="https://web.archive.org/web/20230608161540/http://cortex.glacicle.org/"
WGET_URL="git|git://github.com/GGLucas/cortex"

DEPENDS="py3k cacerts"
BUILD_DEPENDS="git bzip2"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/GGLucas/cortex/commits/master 2>/dev/null | \
    sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q'
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin $fs/home/tux/.cortex
    cp -a $src/$PACKAGE $fs/usr/bin
    cp -a $src/config.example $fs/home/tux/.cortex/config
}

post_install()
{
        chroot "$1/" chown -R tux.users "/home/tux/.cortex"
}

post_remove()
{
        chroot "$1/" rm -r "/home/tux/.cortex"
}

5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)