wok annotate cortex/receipt @ rev 25096

created recipe for wordgrinder
author Hans-G?nter Theisgen
date Sat Jun 18 15:13:12 2022 +0100 (2022-06-18)
parents 34e801e0eb52
children c965782a38e0
rev   line source
paul@19431 1 # SliTaz package receipt.
paul@19431 2
paul@19431 3 PACKAGE="cortex"
pascal@22832 4 VERSION="0.5.1_02102016"
paul@19431 5 CATEGORY="utilities"
paul@19431 6 SHORT_DESC="An ncurses reddit browser and monitor."
paul@19431 7 MAINTAINER="paul@slitaz.org"
paul@19431 8 LICENSE="MIT"
pascal@22832 9 TARBALL="$PACKAGE-${VERSION#*_}.tar.bz2"
paul@19431 10 WEB_SITE="http://cortex.glacicle.org/"
paul@19431 11 WGET_URL="git|git://github.com/GGLucas/cortex"
paul@19431 12
paul@19431 13 DEPENDS="py3k cacerts"
paul@19431 14 BUILD_DEPENDS="git bzip2"
paul@19431 15
pascal@24497 16 # What is the latest version available today?
pascal@24497 17 current_version()
pascal@24497 18 {
pascal@24497 19 wget -O - https://github.com/GGLucas/cortex/commits/master 2>/dev/null | \
pascal@24673 20 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
pascal@24497 21 }
paul@19431 22
paul@19431 23 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@19431 24 genpkg_rules()
paul@19431 25 {
paul@19431 26 mkdir -p $fs/usr/bin $fs/home/tux/.cortex
paul@19431 27 cp -a $src/$PACKAGE $fs/usr/bin
paul@19431 28 cp -a $src/config.example $fs/home/tux/.cortex/config
paul@19431 29 }
paul@19431 30
paul@19431 31 post_install()
paul@19431 32 {
paul@19431 33 chroot "$1/" chown -R tux.users "/home/tux/.cortex"
paul@19431 34 }
paul@19431 35
paul@19431 36 post_remove()
paul@19431 37 {
paul@19431 38 chroot "$1/" rm -r "/home/tux/.cortex"
paul@19431 39 }
paul@19431 40