wok-current view cortex/receipt @ rev 24497

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 19 14:19:02 2022 +0000 (2022-02-19)
parents efa71a1392d4
children ecd613707114
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_list_item/!d;s|.*commits/\(.......\).*|\1|;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 }