wok annotate 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 |
rev | line source |
---|---|
allan316@3844 | 1 # SliTaz package receipt. |
allan316@3844 | 2 |
allan316@3844 | 3 PACKAGE="yaws" |
Hans-G?nter@23788 | 4 VERSION="2.0.7" |
allan316@3844 | 5 CATEGORY="development" |
Hans-G?nter@22321 | 6 TAGS="webserver" |
Hans-G?nter@22321 | 7 SHORT_DESC="Webserver for dynamic content written in Erlang." |
allan316@3844 | 8 MAINTAINER="allan316@gmail.com" |
pascal@15362 | 9 LICENSE="BSD" |
Hans-G?nter@22321 | 10 WEB_SITE="http://yaws.hyber.org" |
Hans-G?nter@22321 | 11 |
allan316@3844 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23788 | 13 WGET_URL="https://github.com/erlyaws/$PACKAGE/archive/$TARBALL" |
allan316@3844 | 14 |
pascal@15598 | 15 DEPENDS="erlang pam pkg-config" |
Hans-G?nter@23788 | 16 BUILD_DEPENDS="autoconf automake erlang gawk libtool pam-dev" |
pascal@15259 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/yaws-\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
allan316@3844 | 24 # Rules to configure and make the package. |
allan316@3844 | 25 compile_rules() |
allan316@3844 | 26 { |
Hans-G?nter@23790 | 27 autoreconf -fi && |
Hans-G?nter@22321 | 28 ./configure \ |
Hans-G?nter@22321 | 29 --prefix=/usr \ |
Hans-G?nter@22321 | 30 --localstatedir=/var \ |
Hans-G?nter@22321 | 31 --sysconfdir=/etc \ |
Hans-G?nter@22321 | 32 --infodir=/usr/share/info \ |
Hans-G?nter@22321 | 33 --mandir=/usr/share/man \ |
allan316@3844 | 34 $CONFIGURE_ARGS && |
Hans-G?nter@22321 | 35 make && |
Hans-G?nter@22321 | 36 make DESTDIR=$DESTDIR install 2>&1 | grep -v yaws.pdf |
allan316@3844 | 37 } |
allan316@3844 | 38 |
allan316@3844 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@3844 | 40 genpkg_rules() |
allan316@3844 | 41 { |
allan316@3844 | 42 mkdir -p $fs/usr |
Hans-G?nter@22321 | 43 |
Hans-G?nter@22321 | 44 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22321 | 45 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@22321 | 46 cp -a $install/etc $fs |
Hans-G?nter@22321 | 47 cp -a $install/var $fs |
allan316@3844 | 48 } |