wok view unibilium/receipt @ rev 25531

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 27 10:05:50 2023 +0000 (21 months ago)
parents f1a091c50397
children 0262035dc1e7
line source
1 # SliTaz package receipt.
3 PACKAGE="unibilium"
4 VERSION="2.1.1"
5 CATEGORY="libs"
6 TAGS="terminfo"
7 SHORT_DESC="Terminfo parsing library."
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="LGPL-3+"
10 WEB_SITE="https://github.com/neovim/unibilium/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}archive/v$VERSION.tar.gz"
15 BUILD_DEPENDS="libtool perl"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 make PREFIX=/usr &&
28 make install PREFIX=/usr
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cook_copy_files *.so*
35 }