wok view swig/receipt @ rev 24391
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 07 18:01:05 2022 +0000 (2022-02-07) |
parents | e2d7785559f5 |
children | bd7510903310 |
line source
1 # SliTaz package receipt.
3 PACKAGE="swig"
4 VERSION="4.0.2"
5 CATEGORY="development"
6 TAGS="compiler"
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL3"
9 SHORT_DESC="A compiler that makes it easy to integrate C and C++ code with scripting languages."
10 WEB_SITE="http://www.swig.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="gcc-lib-base pcre zlib"
16 BUILD_DEPENDS="pcre-dev pkg-config zlib-dev"
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed '/released/!d;s|.*SWIG-||;s| .*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 $CONFIGURE_ARGS &&
30 make &&
31 make 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/usr/bin $fs/usr
40 cp -a $install/usr/share/$PACKAGE $fs/usr/share
41 }