wok view fontforge/receipt @ rev 25632
Up gtklife (5.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 23 14:06:29 2023 +0000 (8 months ago) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="fontforge"
4 VERSION="20190801"
5 CATEGORY="development"
6 TAGS="editor font"
7 SHORT_DESC="An outline font editor."
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="BSD GPL3"
10 WEB_SITE="https://fontforge.github.io/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/$VERSION/$TARBALL"
15 DEPENDS="gtk+ libltdl libspiro libuninameslist python"
16 BUILD_DEPENDS="autoconf automake bash cacerts cairo-dev \
17 coreutils-context-system coreutils-line freetype-dev \
18 git gtk+-dev jpeg-dev libpng-dev libspiro-dev libtool \
19 libuninameslist-dev pango-dev perl python-dev \
20 readline-dev util-linux-uuid-dev xorg-libX11-dev \
21 xorg-libXft-dev zlib-dev"
22 # As 'busybox date' does not support the given options,
23 # coreutils-context-system is required.
25 # What is the latest version available today?
26 current_version()
27 {
28 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
29 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 sed -i 's|_Noreturn||' fontforge/*.c
36 ./bootstrap --skip-git &&
37 ./configure \
38 $CONFIGURE_ARGS &&
39 make -j 1 &&
40 make DESTDIR=$install install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/lib/python2.7/site-packages
47 mkdir -p $fs/usr/share
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 cp -a $install/usr/lib/python2.7/site-packages/*.so \
52 $fs/usr/lib/python2.7/site-packages
53 cp -a $install/usr/share/fontforge $fs/usr/share
55 # Desktop integration not auto-installed
56 mkdir -p \
57 $fs/usr/share/applications \
58 $fs/usr/share/mime/packages
59 # $fs/usr/share/icons/hicolor
61 cp -a $install/usr/share/applications/org.fontforge.FontForge.desktop \
62 $fs/usr/share/applications/fontforge.desktop
63 cp -a $src/desktop/fontforge.xml \
64 $fs/usr/share/mime/packages
65 # cp -a $src/desktop/icons/16x16 \
66 # $fs/usr/share/icons/hicolor
67 # cp -a $src/desktop/icons/48x48 \
68 # $fs/usr/share/icons/hicolor
70 # Remove included fonts
71 rm -r $fs/usr/share/fontforge/pixmaps/*.ttf
72 }