wok view libsecret/receipt @ rev 24411
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 09 17:57:59 2022 +0000 (2022-02-09) |
parents | 1daf24fb0842 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libsecret"
4 VERSION="0.18.5"
5 SERIES="${VERSION%.*}" # first two numbers from version
6 SHORT_DESC="GObject based library for accessing the Secret Service API"
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="LGPL2.1"
9 CATEGORY="security"
10 WEB_SITE="https://gnome.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNOME_MIRROR/$PACKAGE/$SERIES/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="libgio libgpg-error"
16 BUILD_DEPENDS="libgcrypt-dev gobject-introspection-dev vala"
18 current_version()
19 {
20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
21 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --disable-manpages \
29 $CONFIGURE_ARGS &&
30 make && make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/lib/*.so* $fs/usr/lib
39 }