wok-next view libgnomeprint/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | 54b77cd1523c |
children | 16a417e1e89d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libgnomeprint"
4 VERSION="2.18.8"
5 CATEGORY="x-window"
6 SHORT_DESC="GNOME print library"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.gnome.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
13 BUILD_DEPENDS="pkg-config glib-dev pango-dev intltool flex libart_lgpl-dev \
14 libxml2-dev"
15 SPLIT="libgnomeprint libgnomeprint-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure \
21 --with-html-dir=/usr/share/doc \
22 --without-cups \
23 $CONFIGURE_ARGS &&
24 make && make install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 case $PACKAGE in
31 libgnomeprint)
32 DEPENDS="gtk+ popt libxml2 libart_lgpl"
33 mkdir -p $fs/usr/lib $fs/usr/share/locale
35 # Copy shared libs
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
39 cp -a $install/usr/share/locale/fr $fs/usr/share/locale
40 cp -a $install/usr/share/$PACKAGE $fs/usr/share
42 # Remove static libs
43 rm $fs/usr/lib/$PACKAGE/$VERSION/modules/*.*a
44 rm $fs/usr/lib/$PACKAGE/$VERSION/modules/*/*.*a
45 ;;
46 libgnomeprint-dev)
47 CAT="development|GNOME print library"
48 DEPENDS="gtk+-dev popt-dev libxml2-dev pkg-config"
49 mkdir -p $fs/usr/lib
51 # Copy static libs
52 cp -a $install/usr/lib/*.*a $fs/usr/lib
53 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
54 cp -a $install/usr/lib/libgnomeprint $fs/usr/lib
56 cp -a $install/usr/include $fs/usr
58 # Remove shared libs
59 rm $fs/usr/lib/libgnomeprint/$VERSION/modules/*.so*
60 rm $fs/usr/lib/libgnomeprint/$VERSION/modules/*/*.so*
61 ;;
62 esac
63 }