wok view ytnef/receipt @ rev 24427
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 11:42:56 2022 +0000 (2022-02-12) |
parents | 8e1bb04468e8 |
children | 0262035dc1e7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ytnef"
4 VERSION="1.9.3"
5 CATEGORY="mail"
6 SHORT_DESC="Yeraze's TNEF Stream Reader - for winmail.dat files."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://github.com/Yeraze/ytnef"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/Yeraze/$PACKAGE/archive/v$VERSION.tar.gz"
14 BUILD_DEPENDS="automake libtool"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
20 }
22 compile_rules()
23 {
24 ./autogen.sh &&
25 autoreconf -fi &&
27 ./configure \
28 --disable-static \
29 $CONFIGURE_ARGS &&
30 make &&
31 make install
32 }
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 }