wok view libmowgli/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents 68f9518c4cb0
children ac8ca9758df1
line source
1 # SliTaz package receipt.
3 PACKAGE="libmowgli"
4 VERSION="2.1.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="High performance and highly flexible algorithms."
7 MAINTAINER="mimas@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://github.com/atheme/libmowgli-2"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/atheme/$PACKAGE-2/archive/v$VERSION.tar.gz"
14 BUILD_DEPENDS=""
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 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i "s/touch -t 0001010000 /touch /g" configure
26 ./configure \
27 $CONFIGURE_ARGS &&
28 make -j 1 &&
29 make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 cp -a $install/usr/lib/libmowgli*.so* $fs/usr/lib
37 }