wok view aalib/receipt @ rev 25769
libmaxminddb, ndpi: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 09:45:40 2024 +0000 (2 months ago) |
parents | 19fff4ad1644 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="aalib"
4 VERSION="1.4rc5"
5 CATEGORY="multimedia"
6 SHORT_DESC="A portable ASCII art graphic library"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="LGPL2"
9 WEB_SITE="https://sourceforge.net/projects/aa-project/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$SF_MIRROR/aa-project/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="ncurses xorg-libXt xorg-libX11"
15 BUILD_DEPENDS="ncurses-dev xorg-libXt-dev xorg-libX11-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/aa-project/files/aa-lib/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/aa-lib/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 patch -Np0 -i $stuff/aclocal-fixes.patch
30 ./configure $CONFIGURE_ARGS &&
31 make && make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 }