# HG changeset patch # User Paul Issott # Date 1475410584 -3600 # Node ID 6ee34149411d8dc120a522a6b9b1c9bf79246103 # Parent 986d5902efcf227924235ec797eca525c11eef27 Add cortex diff -r 986d5902efcf -r 6ee34149411d cortex/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cortex/receipt Sun Oct 02 13:16:24 2016 +0100 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="cortex" +VERSION="02102016" +CATEGORY="utilities" +SHORT_DESC="An ncurses reddit browser and monitor." +MAINTAINER="paul@slitaz.org" +LICENSE="MIT" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://cortex.glacicle.org/" +WGET_URL="git|git://github.com/GGLucas/cortex" + +DEPENDS="py3k cacerts" +BUILD_DEPENDS="git bzip2" + + +# 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" +} +