smlinux/gtk/gtk3/gtk3.SMBuild

44 lines
1.1 KiB
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gtk3
version=3.24.13
build=1sml
homepage="https://gtk.org"
download="https://gitlab.gnome.org/GNOME/gtk/-/archive/$version/gtk-$version.tar.bz2"
desc="GObject-based multi-platform GUI toolkit"
requires="fribidi iso-codes wayland libxkbcommon libepoxy shared-mime-info cairo gobject-introspection atk pango gdk-pixbuf librsvg at-spi2-atk"
prepbuilddir() {
mkandenterbuilddir
rm -rf "gtk+-$version"
tar xf $srcdir/gtk+-$version.tar.?z
cd "gtk+-$version"
fixbuilddirpermissions
}
build() {
mkdir -p smbuild && cd smbuild
meson .. \
--prefix="/" \
-Dgtk_doc=false \
-Dman=false \
-Dbroadway_backend=true \
-Dtests=false
ninja
DESTDIR="$pkg" ninja install
cp ../COPYING $pkgdocs/
# Install basic startup file
echo 'gtk-theme-name="Adwaita"' > $pkg/etc/gtk-3.0/gtkrc.new
# Don't clobber im-multipress.conf
mv $pkg/etc/gtk-3.0/im-multipress.conf $pkg/etc/gtk-3.0/im-multipress.conf.new
mkfinalpkg
}
sha512sums="
739ea8c764d3afc52417cadc9b2f69965441325cd001694fedf63de9a4a80b90e6f2b82ea6a3b6255b6c4f842652cd6090f8896b724bd6d4b4d808870968be93 gtk+-3.24.13.tar.lz
"