wok diff harfbuzz/receipt @ rev 24336
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 28 18:19:21 2022 +0000 (2022-01-28) |
parents | f7cfddec74b3 |
children | 20ad21d5532c |
line diff
1.1 --- a/harfbuzz/receipt Wed Feb 26 07:37:41 2020 +0100 1.2 +++ b/harfbuzz/receipt Fri Jan 28 18:19:21 2022 +0000 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="harfbuzz" 1.7 -VERSION="2.6.4" 1.8 +VERSION="2.8.1" 1.9 CATEGORY="system-tools" 1.10 SHORT_DESC="OpenType text shaping engine." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 @@ -9,18 +9,22 @@ 1.13 WEB_SITE="https://www.freedesktop.org/wiki/Software/HarfBuzz/" 1.14 1.15 TARBALL="$PACKAGE-$VERSION.tar.xz" 1.16 -WGET_URL="https://www.freedesktop.org/software/$PACKAGE/release/$TARBALL" 1.17 +WGET_URL="https://github.com/harfbuzz/harfbuzz/releases/download/$VERSION/$TARBALL" 1.18 1.19 DEPENDS="cairo freetype gcc83-lib-base glib libffi pcre" 1.20 BUILD_DEPENDS="cairo-dev fontconfig-dev freetype-dev gcc83 glib-dev" 1.21 1.22 HOST_ARCH="i486 arm" 1.23 1.24 +current_version() 1.25 +{ 1.26 + wget -O - ${WGET_URL%/down*} 2>/dev/null | \ 1.27 + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' 1.28 +} 1.29 + 1.30 # Rules to configure and make the package. 1.31 compile_rules() 1.32 { 1.33 - export LDFLAGS="$LDFLAGS -lstdc++" 1.34 - 1.35 ./configure \ 1.36 CC=gcc-83 \ 1.37 CXX=g++-83 \ 1.38 @@ -29,7 +33,7 @@ 1.39 --with-gobject \ 1.40 --with-icu=no \ 1.41 $CONFIGURE_ARGS && 1.42 - make -j 1 && 1.43 + make && 1.44 make install 1.45 } 1.46