wok-current view cortex/receipt @ rev 25312
updated smartmontools (7.2 -> 7.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 20 17:27:26 2022 +0100 (2022-07-20) |
parents | 34e801e0eb52 |
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="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 '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
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 }