wok-current view gobject-introspection/receipt @ rev 24270
updated perl-xml-writer (0.625 -> 0.900)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 02 10:39:58 2022 +0100 (2022-01-02) |
parents | e3f377fbc5f0 |
children | 3ad63c8fc2f9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gobject-introspection"
4 VERSION="1.43.3"
5 CATEGORY="development"
6 SHORT_DESC="Introspection system for GObject-based libraries"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2 MIT"
9 WEB_SITE="https://wiki.gnome.org/Projects/GObjectIntrospection"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
12 #HOST_ARCH="i486 arm"
14 DEPENDS="libgio dbus"
15 BUILD_DEPENDS="flex bison glib-dev python-dev libgio-dev libffi-dev \
16 cairo-dev dbus-dev"
18 # Handle cross compilation
19 case "$ARCH" in
20 arm*)
21 export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib"
22 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
23 export PKG_CONFIG_PATH="/cross/$ARCH/sysroot/usr/pkgconfig"
24 BUILD_DEPENDS="glib-dev libgio-dev libffi-dev cairo-dev dbus-dev" ;;
25 esac
27 current_version()
28 {
29 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
30 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 ./configure \
37 --disable-static \
38 $CONFIGURE_ARGS &&
39 make && make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p \
46 $fs/usr/lib \
47 $fs/usr/share
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
50 cp -a $install/usr/lib/gobject-introspection $fs/usr/lib
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 }