[arch-commits] Commit in neko/trunk (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Tue Dec 22 12:37:58 UTC 2020


    Date: Tuesday, December 22, 2020 @ 12:37:58
  Author: arodseth
Revision: 781961

Use gtk3

Modified:
  neko/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-22 12:27:10 UTC (rev 781960)
+++ PKGBUILD	2020-12-22 12:37:58 UTC (rev 781961)
@@ -9,12 +9,12 @@
 
 pkgname=neko
 pkgver=2.3.0
-pkgrel=1
+pkgrel=2
 pkgdesc='High-level and dynamically typed programming language'
 url='https://nekovm.org/'
 license=(LGPL)
 arch=(x86_64)
-depends=(gc gtk2 mariadb-libs mbedtls sqlite)
+depends=(gc gtk3 mariadb-libs mbedtls sqlite)
 makedepends=(apache apr cmake git mbedtls ninja)
 optdepends=('apache: for extending Apache with mod_neko')
 options=(!strip)
@@ -23,6 +23,11 @@
 
 prepare() {
   sed -i '/xlocale.h/d' $pkgname/libs/std/sys.c
+
+  # Port to GTK 3
+  mv $pkgname/cmake/FindGTK2.cmake $pkgname/cmake/FindGTK3.cmake
+  sed -i 's/gtk_timeout_add/gdk_threads_add_timeout/g' $pkgname/libs/ui/ui.c
+  find $pkgname -type f -exec sed -i 's/gtk2/gtk3/g;s/GTK2/GTK3/g;s/gtk-2/gtk-3/g;s/GTK-2/GTK-3/g;s/gtk+-2/gtk+-3/g;s/GTK+-2/GTK+-3/g' {} \;
 }
 
 build() {
@@ -40,4 +45,3 @@
 }
 
 # getver: nekovm.org/download
-# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list