wok-current annotate utf8proc/receipt @ rev 24439
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 13 18:01:32 2022 +0000 (2022-02-13) |
parents | 34fee0670dce |
children |
rev | line source |
---|---|
pascal@22776 | 1 # SliTaz package receipt. |
pascal@22776 | 2 |
pascal@22776 | 3 PACKAGE="utf8proc" |
pascal@22776 | 4 VERSION="2.4.0" |
pascal@22776 | 5 CATEGORY="misc" |
pascal@22776 | 6 SHORT_DESC="A clean C library for processing UTF-8 Unicode data" |
pascal@22776 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@22776 | 8 LICENSE="MIT" |
pascal@22776 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@22776 | 10 WEB_SITE="https://github.com/JuliaStrings/utf8proc" |
pascal@22776 | 11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz" |
pascal@22776 | 12 |
pascal@22776 | 13 BUILD_DEPENDS="cmake" |
pascal@22776 | 14 |
pascal@24055 | 15 current_version() |
pascal@24055 | 16 { |
pascal@24055 | 17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 18 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 19 } |
pascal@24055 | 20 |
pascal@22776 | 21 # Rules to configure and make the package. |
pascal@22776 | 22 compile_rules() |
pascal@22776 | 23 { |
pascal@22776 | 24 mkdir build |
pascal@22776 | 25 cd build |
pascal@22776 | 26 cmake -DCMAKE_INSTALL_PREFIX=/usr .. && |
pascal@22776 | 27 make && |
pascal@22776 | 28 make DESTDIR=$DESTDIR install |
pascal@22776 | 29 } |
pascal@22776 | 30 |
pascal@22776 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@22776 | 32 genpkg_rules() |
pascal@22776 | 33 { |
pascal@22776 | 34 cp -a $install/usr $fs |
pascal@22776 | 35 } |