wok view xorg-base-fonts/receipt @ rev 25529

created recipe for neovim-0.8.3
author Hans-G?nter Theisgen
date Sat Feb 25 14:14:14 2023 +0100 (20 months ago)
parents 814c58f64f83
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-base-fonts"
4 VERSION="1.2"
5 CATEGORY="x-window"
6 SHORT_DESC="X window base/minimal fonts from the Xorg project."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.x.org/"
11 WGET_URL="http://download.tuxfamily.org/slitaz/sources/fonts/$TARBALL"
12 HOST_ARCH="i486 arm"
14 BUILD_DEPENDS="advancecomp"
16 current_version()
17 {
18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
19 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 find $src/fonts -name '*.gz' -exec advdef -z4 {} \;
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 fontpath="$fs/usr/share/fonts/X11/misc"
32 mkdir -p $fontpath $fs/usr/share/fonts/X11/util
33 install -m644 -oroot -groot $src/fonts/misc/* $fontpath
34 install -m644 -oroot -groot $src/fonts/util/* $fs/usr/share/fonts/X11/util
35 rm -rf $fontpath/6x13-ISO8859-1.pcf.gz $fontpath/cursor.pcf.gz # libXfont buitins
36 sed -i 6i\ '7x13B-ISO8859-1.pcf.gz -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-1' \
37 $fontpath/fonts.dir
38 }
40 # Execute fc-cache when the package finish to install.
41 post_install()
42 {
43 # It may be segfault without -f or -r
44 chroot "$1/" /usr/bin/fc-cache -r
45 }