wok view apr-util/receipt @ rev 24462
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 16 21:07:01 2022 +0000 (2022-02-16) |
parents | f4cb7c6f97ac |
children | bd7510903310 |
line source
1 # SliTaz package receipt.
3 PACKAGE="apr-util"
4 VERSION="1.6.1"
5 CATEGORY="development"
6 SHORT_DESC="APR Library Utilities."
7 MAINTAINER="lehswe@gmail.com"
8 LICENSE="Apache"
9 WEB_SITE="https://apr.apache.org"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://www.apache.org/dist/apr/$TARBALL"
14 DEPENDS="apr expat ncurses readline zlib"
15 BUILD_DEPENDS="apr-dev expat-dev gawk libmysqlclient
16 libpostgresqlclient libtool mysql-dev postgresql-dev
17 sqlite-dev unixODBC-dev util-linux-uuid-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --with-apr=$(apr-1-config --bindir) \
31 --with-pgsql=/usr \
32 --with-mysql \
33 --prefix=/usr \
34 --infodir=/usr/share/info \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib/apr-util-1
46 cp -a $install/usr/lib/*.so* $fs/usr/lib
47 #cp -a $install/usr/lib/apr-util-1/*.so* $fs/usr/lib/apr-util-1
48 }