wok-current annotate 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 |
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@24497 | 20 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q' |
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 |