wok-current view t2/receipt @ rev 25511

memtest: 386 support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 13 17:17:56 2023 +0000 (21 months ago)
parents 7491bbeb0220
children
line source
1 # SliTaz package receipt.
3 PACKAGE="t2"
4 VERSION="8.0"
5 CATEGORY="development"
6 SHORT_DESC="System Development Environment."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.t2-project.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://dl.t2-project.org/source/$TARBALL"
14 DEPENDS="bash ncurses slitaz-toolchain"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/lib
27 cp -a $src $fs/usr/lib/t2
28 }
30 # Pre and post install commands for Tazpkg.
31 post_install()
32 {
33 [ -L "$1/usr/bin/wget" ] && tazpkg get-install wget --forced --root="${1:-/}"
34 cat <<EOT
35 Now you can do:
36 # cd /usr/lib/t2
37 # scripts/Config
39 But read http://www.t2-project.org/handbook/html/t2-book.html before...
41 EOT
42 }