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
55 lines
1.8 KiB
Bash
55 lines
1.8 KiB
Bash
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
|
app=gtk2
|
|
version=2.24.32
|
|
build=1sml
|
|
homepage="https://www.gtk.org/"
|
|
download="https://gitlab.gnome.org/GNOME/gtk/-/archive/$version/gtk-$version.tar.bz2"
|
|
desc="GObject-based multi-platform GUI toolkit (legacy)"
|
|
requires="desktop-file-utils fribidi libxcomposite libxcursor libxdamage libxi libxinerama libxcb libxrandr fontconfig freetype pango harfbuzz graphite2 cairo atk gdk-pixbuf"
|
|
|
|
prepbuilddir() {
|
|
mkandenterbuilddir
|
|
rm -rf "gtk-$version"
|
|
|
|
tar xf $srcdir/gtk-$version.tar.?z
|
|
cd "gtk-$version"
|
|
fixbuilddirpermissions
|
|
|
|
autoreconf
|
|
applypatch $srcdir/gtk2-fixdso.patch
|
|
applypatch $srcdir/xid-collision-debug.patch
|
|
}
|
|
|
|
build() {
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--disable-cups \
|
|
--enable-xkb \
|
|
--disable-gtk-doc \
|
|
--disable-gtk-doc-html \
|
|
--disable-gtk-doc-pdf
|
|
|
|
make || /etc/rc.d/rc.gtk
|
|
make
|
|
make install DESTDIR=$pkg
|
|
|
|
cp COPYING $pkgdocs/
|
|
|
|
# Don't clobber im-multipress.conf
|
|
mv $pkg/etc/gtk-2.0/im-multipress.conf $pkg/etc/gtk-2.0/im-multipress.conf.new
|
|
|
|
# Install a basic gtkrc
|
|
mkdir -p $pkg/usr/share/gtk-2.0
|
|
echo 'gtk-theme-name="GTK+"' > $pkg/usr/share/gtk-2.0/gtkrc
|
|
echo 'gtk-icon-theme-name="Adwaita"' >> $pkg/usr/share/gtk-2.0/gtkrc
|
|
echo 'gtk-fallback-icon-theme = "Tango"' >> $pkg/usr/share/gtk-2.0/gtkrc
|
|
|
|
mkfinalpkg
|
|
}
|
|
|
|
sha512sums="
|
|
ff0b416da613e6f12ba1120ed7061ebaa7f421003bb32eb281077c89f5cb8a72b2b8a26b9d711cb431e5818b30fd3c8935da453da0774e509d882ee82b0059a1 gtk-2.24.32.tar.lz
|
|
95f28633a5164a2a9fec45ee1aa80bd1c07e0c5a7ac8d770b9c74af0909b7286b823eb634aa384cad609dc8799d2e6c9e8392c2732b9093076fdf94b4f6878b7 gtk2-fixdso.patch
|
|
89e3223c86731a76b12d39245f1ec4cf8b4860ab1d11d74a10e5deb0db302f20b4bb5d9034da1d8aeb96369dbdeddcdd2f28943270dc501476c694562b960159 xid-collision-debug.patch
|
|
"
|