wok view expat/receipt @ rev 24414
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 10 11:43:39 2022 +0000 (2022-02-10) |
parents | 7e911016a644 |
children | 4b9f7978be6f |
line source
1 # SliTaz package receipt.
3 PACKAGE="expat"
4 VERSION="2.4.4"
5 CATEGORY="x-window"
6 SHORT_DESC="XML parsing C library"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://libexpat.github.io/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 HOST_ARCH="i486 arm"
16 current_version()
17 {
18 wget -O - $WEB_SITE 2>/dev/null | \
19 sed '/Changes">/!d;s|.*Expat ||;s|</a.*||;s|</*strong>||g;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 ./configure $CONFIGURE_ARGS &&
26 make -j 1 &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib $fs/usr/bin
34 cp -a $install/usr/bin/* $fs/usr/bin
35 cp -a $install/usr/lib/*.so* $fs/usr/lib
36 # expat so.0 symbolic link.
37 cd $fs/usr/lib
38 ln -s libexpat.so.1.*.* libexpat.so.0
39 }