wok-current view fontconfig-infinality/receipt @ rev 25362
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 28 07:24:59 2022 +0000 (2022-07-28) |
parents | 544e47246b33 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="fontconfig-infinality"
4 GITHASH="a6372281b91f0bc8b6c0d7ce2c9da41df65806ec"
5 VERSION="20160915"
6 CATEGORY="x-window"
7 SHORT_DESC="Infinality addition for fontconfig"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="MIT"
10 WEB_SITE="https://www.freedesktop.org/wiki/Software/fontconfig/"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="https://github.com/Infinality/$PACKAGE/archive/$GITHASH.zip"
13 CONFIG_FILES="/etc/fonts/infinality/infinality.conf"
15 DEPENDS="fontconfig"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/bohoomil/fontconfig-ultimate/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;s|-||g;q'
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p \
28 $fs/etc/fonts \
29 $fs/usr/bin
30 cp -r $src/* $fs/etc/fonts
31 mv $fs/etc/fonts/infinality/infctl.sh $fs/usr/bin
32 # ported to Ash
33 sed -i 's|bin/bash|bin/sh|; s|^function \([a-z]*\) |\1()\n|g; \
34 s|select style|for style|; s|rm -r|rm -rf|; s|mkdir|mkdir -p|' \
35 $fs/usr/bin/infctl.sh
36 }