wok view aterm/receipt @ rev 25769

libmaxminddb, ndpi: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 06 09:45:40 2024 +0000 (3 months ago)
parents b0069c845544
children
line source
1 # SliTaz package receipt.
3 PACKAGE="aterm"
4 VERSION="1.0.1"
5 CATEGORY="misc"
6 SHORT_DESC="terminal emulator"
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://aterm.sourceforge.net"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="http://nchc.dl.sourceforge.net/sourceforge/aterm/$TARBALL"
12 TAGS="terminal"
13 HOST_ARCH="i486 arm"
15 DEPENDS="xorg-libSM xorg-libXext"
16 BUILD_DEPENDS="xorg-libSM-dev xorg-libXext-dev xorg-libXt-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/aterm/files/aterm/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/aterm/||;s|/.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 case "$ARCH" in
30 arm*)
31 export PATH=/cross/arm/tools/arm-slitaz-linux-gnueabi/bin:$PATH
32 esac
33 ./configure $CONFIGURE_ARGS &&
34 make && make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $install/usr/bin $fs/usr
42 }