wok view fontforge/receipt @ rev 21560

fontforge: modified genpkg_rules
author Hans-G?nter Theisgen
date Thu May 16 17:03:42 2019 +0100 (2019-05-16)
parents 17429b2b6b97
children 47014aa052fd
line source
1 # SliTaz package receipt.
3 PACKAGE="fontforge"
4 VERSION="20190413"
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/fontforge/fontforge/releases/download/$VERSION/$TARBALL"
14 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION/$TARBALL"
16 DEPENDS="gtk+ libltdl libspiro libuninameslist python"
17 BUILD_DEPENDS="autoconf automake bash cacerts cairo-dev \
18 coreutils-context-system coreutils-line freetype-dev \
19 git gtk+-dev jpeg-dev libpng-dev libspiro-dev libtool \
20 libuninameslist-dev pango-dev perl python-dev \
21 readline-dev util-linux-uuid-dev xorg-libX11-dev \
22 xorg-libXft-dev zlib-dev"
23 # As 'busybox date' does not support the given options,
24 # coreutils-context-system is required.
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./bootstrap &&
30 # --skip-git
31 # --gnulib-srcdir=$src/gnulib
33 ./configure \
34 --enable-gtk2-use \
35 $CONFIGURE_ARGS &&
36 make -j 1 &&
37 make DESTDIR=$install install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib/python2.7/site-packages
44 mkdir -p $fs/usr/share
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 cp -a $install/usr/lib/python2.7/site-packages/*.so \
49 $fs/usr/lib/python2.7/site-packages
50 cp -a $install/usr/share/fontforge $fs/usr/share
52 # Desktop integration not auto-installed
53 mkdir -p \
54 $fs/usr/share/applications \
55 $fs/usr/share/mime/packages
56 # $fs/usr/share/icons/hicolor
58 cp -a $install/usr/share/applications/org.fontforge.FontForge.desktop \
59 $fs/usr/share/applications/fontforge.desktop
60 cp -a $src/desktop/fontforge.xml \
61 $fs/usr/share/mime/packages
62 # cp -a $src/desktop/icons/16x16 \
63 # $fs/usr/share/icons/hicolor
64 # cp -a $src/desktop/icons/48x48 \
65 # $fs/usr/share/icons/hicolor
67 # Remove included fonts
68 rm -r $fs/usr/share/fontforge/pixmaps/*.ttf
69 }