wok-6.x annotate gobject-introspection/receipt @ rev 24453

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 15 18:29:48 2022 +0000 (2022-02-15)
parents e3f377fbc5f0
children
rev   line source
slaxemulator@6668 1 # SliTaz package receipt.
slaxemulator@6668 2
slaxemulator@6668 3 PACKAGE="gobject-introspection"
devl547@17593 4 VERSION="1.43.3"
al@14225 5 CATEGORY="development"
al@14225 6 SHORT_DESC="Introspection system for GObject-based libraries"
slaxemulator@6668 7 MAINTAINER="pankso@slitaz.org"
pascal@15021 8 LICENSE="LGPL2 MIT"
pascal@20673 9 WEB_SITE="https://wiki.gnome.org/Projects/GObjectIntrospection"
al@14225 10 TARBALL="$PACKAGE-$VERSION.tar.xz"
yuripourre@16883 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
pankso@16084 12 #HOST_ARCH="i486 arm"
al@14225 13
pascal@16215 14 DEPENDS="libgio dbus"
pankso@16084 15 BUILD_DEPENDS="flex bison glib-dev python-dev libgio-dev libffi-dev \
pankso@16084 16 cairo-dev dbus-dev"
pankso@16084 17
pankso@16084 18 # Handle cross compilation
pankso@16084 19 case "$ARCH" in
pankso@16084 20 arm*)
pankso@16084 21 export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib"
pascal@17670 22 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
pankso@16084 23 export PKG_CONFIG_PATH="/cross/$ARCH/sysroot/usr/pkgconfig"
pankso@16084 24 BUILD_DEPENDS="glib-dev libgio-dev libffi-dev cairo-dev dbus-dev" ;;
pankso@16084 25 esac
slaxemulator@6668 26
pascal@24111 27 current_version()
pascal@24111 28 {
pascal@24111 29 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24111 30 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24111 31 }
pascal@24111 32
slaxemulator@6668 33 # Rules to configure and make the package.
slaxemulator@6668 34 compile_rules()
slaxemulator@6668 35 {
slaxemulator@6668 36 ./configure \
slaxemulator@6669 37 --disable-static \
slaxemulator@6668 38 $CONFIGURE_ARGS &&
pankso@16084 39 make && make install
slaxemulator@6668 40 }
slaxemulator@6668 41
slaxemulator@6668 42 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6668 43 genpkg_rules()
slaxemulator@6668 44 {
al@14225 45 mkdir -p \
al@14225 46 $fs/usr/lib \
al@14225 47 $fs/usr/share
al@14225 48 cp -a $install/usr/bin $fs/usr
al@14225 49 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
al@14225 50 cp -a $install/usr/lib/gobject-introspection $fs/usr/lib
al@14225 51 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@6668 52 }