wok view cortex/receipt @ rev 25779
Up fdutils (5.6), lite (1.11), again
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 20 09:24:30 2024 +0000 (2 months ago) |
parents | ecd613707114 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="cortex"
4 VERSION="0.5.1_02102016"
5 CATEGORY="utilities"
6 SHORT_DESC="An ncurses reddit browser and monitor."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-${VERSION#*_}.tar.bz2"
10 WEB_SITE="https://web.archive.org/web/20230608161540/http://cortex.glacicle.org/"
11 WGET_URL="git|git://github.com/GGLucas/cortex"
13 DEPENDS="py3k cacerts"
14 BUILD_DEPENDS="git bzip2"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/GGLucas/cortex/commits/master 2>/dev/null | \
20 sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q'
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin $fs/home/tux/.cortex
27 cp -a $src/$PACKAGE $fs/usr/bin
28 cp -a $src/config.example $fs/home/tux/.cortex/config
29 }
31 post_install()
32 {
33 chroot "$1/" chown -R tux.users "/home/tux/.cortex"
34 }
36 post_remove()
37 {
38 chroot "$1/" rm -r "/home/tux/.cortex"
39 }