wok view gnome-keyring/receipt @ rev 24111

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 28 17:26:43 2021 +0000 (2021-09-28)
parents 6e8b1bcb30e2
children
line source
1 # SliTaz package receipt.
3 PACKAGE="gnome-keyring"
4 VERSION="2.32.1"
5 CATEGORY="x-window"
6 SHORT_DESC="A program that keep password and other secrets for users."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.gnome.org"
11 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
13 DEPENDS="libgcrypt libtasn1 python dbus gtk+"
14 BUILD_DEPENDS="libgcrypt-dev libtasn1-dev python-dev dbus-dev intltool file \
15 gtk+-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 sed -i -e 's|<glib.h>|&\n#include <libtasn1.h>|' \
27 -e 's|const struct static_struct_asn|const ASN1_ARRAY_TYPE|' \
28 egg/egg-asn1x.h
29 ./configure \
30 --libexecdir=/usr/lib/$PACKAGE \
31 --sysconfdir=/etc/gnome \
32 --disable-pam &&
33 make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib $fs/usr/share
40 cp -a $install/etc $fs
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
44 for i in dbus-1 GConf gcr glib-2.0 $PACKAGE
45 do
46 cp -a $install/usr/share/$i $fs/usr/share
47 done
49 # Remove devel files.
50 rm -rf $fs/usr/lib/gnome-keyring/devel
51 find $fs/usr/lib -name *.*a -exec rm -f {} \;
52 }