wok-current annotate glibmm/receipt @ rev 25431

qt5: update wget_url with archive.org
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 19 06:34:23 2022 +0000 (2022-08-19)
parents 324b3fa82b76
children 3ad63c8fc2f9
rev   line source
pankso@137 1 # SliTaz package receipt.
pankso@137 2
pankso@137 3 PACKAGE="glibmm"
yuripourre@16918 4 VERSION="2.40.0"
pankso@209 5 CATEGORY="x-window"
pankso@137 6 SHORT_DESC="C++ interface for the popular GUI library GTK+."
pankso@137 7 MAINTAINER="pankso@slitaz.org"
pascal@14996 8 LICENSE="LGPL2.1"
yuripourre@16919 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@20669 10 WEB_SITE="https://www.gtkmm.org/"
yuripourre@16918 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
pankso@137 12
al@16770 13 DEPENDS="glib libsigc++ gcc-lib-base glibc-base libffi pcre"
pankso@9711 14 BUILD_DEPENDS="glib-dev libsigc++-dev"
pankso@9711 15
pascal@24051 16 current_version()
pascal@24051 17 {
pascal@24051 18 wget -O - $(dirname $WGET_URL) 2>/dev/null | sed '/LATEST/!d;s|.*IS-||;s|<.*||'
pascal@24051 19 }
pascal@24051 20
pankso@137 21 # Rules to configure and make the package.
pankso@137 22 compile_rules()
pankso@137 23 {
pascal@12673 24 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
pascal@24361 25 sed 's/return gobject_;/return \&gobject_;/' -i glib/glibmm/threads.h
slaxemulator@10088 26 ./configure $CONFIGURE_ARGS &&
slaxemulator@10088 27 make && make install
pankso@137 28 }
pankso@137 29
pankso@137 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@137 31 genpkg_rules()
pankso@137 32 {
pankso@137 33 mkdir -p $fs/usr/lib
pascal@14996 34 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@842 35 # Remove libgiomm
pankso@842 36 rm -rf $fs/usr/lib/libgiomm*
pankso@137 37 }