wok-current view glibmm/receipt @ rev 25672

patch tazpkg, upgrade core pkgs first
author Stanislas Leduc <shann@slitaz.org>
date Sun Mar 03 17:58:42 2024 +0000 (5 months ago)
parents 370da83187ab
children
line source
1 # SliTaz package receipt.
3 PACKAGE="glibmm"
4 VERSION="2.64.5"
5 CATEGORY="x-window"
6 SHORT_DESC="C++ interface for the popular GUI library GTK+."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://www.gtkmm.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
13 DEPENDS="glib libsigc++ gcc-lib-base glibc-base libffi pcre"
14 BUILD_DEPENDS="glib-dev libsigc++-dev meson"
16 current_version()
17 {
18 wget -O - $(dirname $WGET_URL) 2>/dev/null | sed '/LATEST/!d;s|.*IS-||;s|<.*||'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 #find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
25 #sed 's/return gobject_;/return \&gobject_;/' -i glib/glibmm/threads.h
27 meson build \
28 --prefix=/usr \
29 --libdir=lib \
30 --bindir=/usr/bin \
31 --sbindir=/usr/sbin \
32 --datadir=/usr/share \
33 --buildtype=release &&
34 ninja -C build &&
35 ninja -C build install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 # Remove libgiomm
44 rm -rf $fs/usr/lib/libgiomm*
45 }