wok view libconfuse/receipt @ rev 25690

mmv: inserted current_version()
author Hans-G?nter Theisgen
date Mon Apr 15 15:20:24 2024 +0100 (7 weeks ago)
parents 798acb92d4d5
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libconfuse"
4 VERSION="3.3"
5 CATEGORY="misc"
6 SHORT_DESC="Configuration file parser library."
7 MAINTAINER="mallory@sweetpeople.org"
8 LICENSE="ISC"
9 WEB_SITE="https://github.com/libconfuse/libconfuse"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/martinh/$PACKAGE/archive/v$VERSION.tar.gz"
14 DEPENDS=""
15 BUILD_DEPENDS="automake libtool"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./autogen.sh &&
28 ./configure \
29 --prefix=/usr \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 $CONFIGURE_ARGS
34 sed -i 's/ -Werror//' src/Makefile
36 make &&
37 make install DESTDIR=$DESTDIR
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 get_dev_files
44 }