wok-current view gnustep-make/receipt @ rev 24425
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 11 17:50:36 2022 +0000 (2022-02-11) |
parents | 3a42ed2154cd |
children | b0a19fe55cb0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gnustep-make"
4 VERSION="2.7.0"
5 CATEGORY="development"
6 SHORT_DESC="GNUstep make package."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.gnustep.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://ftp.gnustep.org/pub/gnustep/core/$TARBALL"
14 DEPENDS="make"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --prefix=/usr \
28 --with-layout=fhs \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share
39 cp -a $install/etc $fs
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/share/GNUstep $fs/usr/share
42 }