wok view gmime/receipt @ rev 24535

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 23 11:49:52 2022 +0000 (2022-02-23)
parents 2622a9066658
children ee0a3fa85a9a
line source
1 # SliTaz package receipt.
3 PACKAGE="gmime"
4 VERSION="3.2.6"
5 CATEGORY="development"
6 SHORT_DESC="Library for parsing messages using MIME."
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://spruce.sourceforge.net/gmime"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
14 DEPENDS="glib gpgme zlib"
15 BUILD_DEPENDS="glib-dev gpgme-dev zlib-dev"
17 current_version()
18 {
19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
20 sed "/$PACKAGE-[0-9]/!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 --enable-smime \
28 --disable-mono \
29 --disable-static \
30 --build=$HOST_SYSTEM \
31 --host=$HOST_SYSTEM 2>&1 | grep -v "can't remove" &&
32 make -j 1 &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
40 cp -a $install/usr/lib/*.so* $fs/usr/lib
41 }