wok-current annotate harfbuzz/receipt @ rev 24103
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 17 14:12:38 2021 +0000 (2021-09-17) |
parents | f7cfddec74b3 |
children | 58294245c63d |
rev | line source |
---|---|
pankso@16149 | 1 # SliTaz package receipt. |
pankso@16149 | 2 |
pankso@16149 | 3 PACKAGE="harfbuzz" |
pascal@24070 | 4 VERSION="2.8.1" |
pankso@16149 | 5 CATEGORY="system-tools" |
Hans-G?nter@21026 | 6 SHORT_DESC="OpenType text shaping engine." |
pankso@16149 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@16149 | 8 LICENSE="GPL2" |
al@19306 | 9 WEB_SITE="https://www.freedesktop.org/wiki/Software/HarfBuzz/" |
Hans-G?nter@21026 | 10 |
Hans-G?nter@22922 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@24070 | 12 WGET_URL="https://github.com/harfbuzz/harfbuzz/releases/download/$VERSION/$TARBALL" |
Hans-G?nter@21026 | 13 |
Hans-G?nter@22922 | 14 DEPENDS="cairo freetype gcc83-lib-base glib libffi pcre" |
Hans-G?nter@22922 | 15 BUILD_DEPENDS="cairo-dev fontconfig-dev freetype-dev gcc83 glib-dev" |
Hans-G?nter@22922 | 16 |
pascal@19088 | 17 HOST_ARCH="i486 arm" |
pankso@16149 | 18 |
pascal@24070 | 19 current_version() |
pascal@24070 | 20 { |
pascal@24070 | 21 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@24070 | 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24070 | 23 } |
pascal@24070 | 24 |
pankso@16149 | 25 # Rules to configure and make the package. |
pankso@16149 | 26 compile_rules() |
pankso@16149 | 27 { |
Hans-G?nter@21026 | 28 ./configure \ |
Hans-G?nter@22922 | 29 CC=gcc-83 \ |
Hans-G?nter@22922 | 30 CXX=g++-83 \ |
Hans-G?nter@21026 | 31 --with-freetype \ |
Hans-G?nter@21026 | 32 --with-glib \ |
Hans-G?nter@21026 | 33 --with-gobject \ |
Hans-G?nter@21026 | 34 --with-icu=no \ |
al@19306 | 35 $CONFIGURE_ARGS && |
pascal@24070 | 36 make && |
Hans-G?nter@21026 | 37 make install |
pankso@16149 | 38 } |
pankso@16149 | 39 |
pankso@16149 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16149 | 41 genpkg_rules() |
pankso@16149 | 42 { |
pankso@16149 | 43 mkdir -p $fs/usr/lib |
Hans-G?nter@21026 | 44 |
Hans-G?nter@21026 | 45 #cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21026 | 46 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@16149 | 47 } |