wok-6.x view libmcs/receipt @ rev 24465
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 17 12:02:46 2022 +0000 (2022-02-17) |
parents | eeba7ab1dffe |
children | 00e3b45c063b |
line source
1 # SliTaz package receipt.
3 PACKAGE="libmcs"
4 VERSION="0.7.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Library for configuration storage"
7 MAINTAINER="mimas@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="https://github.com/atheme-legacy/libmcs"
11 WGET_URL="http://distfiles.atheme.org/$TARBALL"
13 DEPENDS="libmowgli"
14 BUILD_DEPENDS="libmowgli-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 sed -i 's/libmowgli/libmowgli-2/' configure configure.ac libmcs.pc.in
28 sed -i "s/touch -t 0001010000 /touch /g" configure
29 ./configure $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/lib/libmcs.so* $fs/usr/lib/
40 cp -a $install/usr/lib/mcs $fs/usr/lib/
41 }