wok-next view glib/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children 4d9f82dabdbb
line source
1 # SliTaz package receipt v2.
3 PACKAGE="glib"
4 VERSION="2.56.1"
5 CATEGORY="x-window"
6 SHORT_DESC="C routines"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://developer.gnome.org/glib/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/glib2.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
15 BUILD_DEPENDS="automake libtool zlib-dev libffi-dev gettext-dev \
16 util-linux-mount-dev pcre-dev glib-dev elfutils-dev gtk-doc libxslt \
17 docbook-xsl dbus-dev"
18 SPLIT="$PACKAGE-static $PACKAGE-dev"
20 # glib require glib to be built.
21 # And if glib failed to build and not present on the mirror, you will catch
22 # into the dead loop. Be careful!
24 compile_rules() {
25 # --enable-static: desktop-file-validate-static require such lib
26 NOCONFIGURE=1 ./autogen.sh &&
27 ./configure \
28 --enable-debug=no \
29 --enable-static \
30 --disable-fam \
31 $CONFIGURE_ARGS &&
32 fix libtool &&
33 make &&
34 make install
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 glib)
40 copy @std
41 # Python codegen, tester, Perl mkenums --> glib-dev
42 cd $fs/usr/bin
43 rm gdbus-codegen gtester* glib-mkenums glib-gettextize
44 rm -r $fs/usr/share
45 DEPENDS="elfutils libffi libpcre util-linux-mount zlib"
46 ;;
47 *-static)
48 copy *.a
49 DEPENDS=" "
50 CAT="development|static libraries"
51 ;;
52 *-dev)
53 copy @std @dev @rm
54 DEPENDS="glib libffi-dev pcre-dev python util-linux-mount-dev \
55 zlib-dev perl"
56 ;;
57 esac
58 }