wok view yaws/receipt @ rev 24384

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 06 16:04:43 2022 +0000 (2022-02-06)
parents 4899cc5a72a1
children 92161a7a5d2e
line source
1 # SliTaz package receipt.
3 PACKAGE="yaws"
4 VERSION="2.0.7"
5 CATEGORY="development"
6 TAGS="webserver"
7 SHORT_DESC="Webserver for dynamic content written in Erlang."
8 MAINTAINER="allan316@gmail.com"
9 LICENSE="BSD"
10 WEB_SITE="http://yaws.hyber.org"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/erlyaws/$PACKAGE/archive/$TARBALL"
15 DEPENDS="erlang pam pkg-config"
16 BUILD_DEPENDS="autoconf automake erlang gawk libtool pam-dev"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/yaws-\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 autoreconf -fi &&
28 ./configure \
29 --prefix=/usr \
30 --localstatedir=/var \
31 --sysconfdir=/etc \
32 --infodir=/usr/share/info \
33 --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$DESTDIR install 2>&1 | grep -v yaws.pdf
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/lib $fs/usr
46 cp -a $install/etc $fs
47 cp -a $install/var $fs
48 }