smlinux/gtk/gtk3/smbuild
PktSurf 9d657e0a1d Upgraded base/perl to 5.38.0
Renamed .SMBuild files to smbuild for simplicity
Added musl-fts, musl-obstack, glslang, python-glad, libptytty, libmilter, elfutils and fuse to base section build list
Discarded fuse2 and fuse3 from base section
Temporarily discarded slapt-get, syslinux, p7zip, acpid, libelf-compat, gnu-eif, libtirpc, mozilla-nss,
lua53, qpdf, kernel-source and signify from base section build list
Disabled nls and made amends to base/e2fsprogs
Upgraded base/git to 2.46.2
Upgraded extra/gnumeric to 1.12.57
Disabled nls in base/gnutls, extra/dia
Disabled a patch and made amends in base/llvm
Fixed configure.local file in base/mandoc
Upgraded base/rust to 1.79
Fixed a ton of build files to use build prefix as /usr and miscellaneous changes
Discarded extra/bluez,blueman,scrcpy,adafruit-io
Added tomb to extra
Added new build option to extra/libass
Upgraded extra/mpv to 0.37.0
Disabled tests in gtk/gdk-pixbuf
Upgraded gtk/goffice to 0.10.57
Added gtk-doc to gtk section
Fixed build options in gtk/gtk2
Added new patches to gtk/gtk3
Added gtksourceview to gtk section
Added vulkan-headers to xorg section
Upgraded xorg/mesa to 23.1.9
Added libplacebo to xorg section
Fixed build stuff in xorg/glew
2024-10-29 20:25:20 +05:30

56 lines
1.5 KiB
Bash

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gtk3
version=3.24.38
build=3sml
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
applypatch $srcdir/charcode.patch
applypatch $srcdir/dbus-crash.patch
applypatch $srcdir/glsync-fix.patch
applypatch $srcdir/offscreen-crash.patch
applypatch $srcdir/pad-fix.patch
applypatch $srcdir/password-segv.patch
applypatch $srcdir/stylus-map.patch
applypatch $srcdir/x11-perf.patch
}
build() {
mkdir -p smbuild && cd smbuild
meson .. \
--prefix=/usr \
-Dgtk_doc=false \
-Dman=false \
-Dbroadway_backend=true \
-Dx11_backend=true \
-Dwayland_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="
1d2d05759614520b6d80f0992343c0c81811b712e36b6d9ec007ae2da9ff41785c9645902af8fc8b1825dd136720168a0fa4d7264c63b8826b866ba019b3de32 gtk+-3.24.38.tar.lz
"