wok-current view dashel/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 13db6a8e5f8a
children ac8ca9758df1
line source
1 # SliTaz package receipt.
3 PACKAGE="dashel"
4 VERSION="1.3.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="C++ cross-platform data stream helper encapsulation library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://aseba-community.github.io/dashel/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/aseba-community/$PACKAGE/archive/$VERSION.tar.gz"
14 DEPENDS="hal"
15 BUILD_DEPENDS="cmake hal-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;/tags\/[0-9]/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cmake . \
27 -DCMAKE_INSTALL_PREFIX=/usr \
28 -DBUILD_SHARED_LIBS=OFF &&
29 make &&
30 make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
38 cp -a $install/usr/include $fs/usr
39 cp -a $install/usr/lib $fs/usr
40 }