From 065f2b7a54c102a17dcaa406865cfa68d67fea5c Mon Sep 17 00:00:00 2001 From: meator Date: Thu, 26 Aug 2021 10:10:17 +0200 Subject: [PATCH] New package: gtk-chtheme-0.3.1 --- srcpkgs/gtk-chtheme/patches/Makeflie.patch | 22 +++++++++++++++++++ .../gtk-chtheme/patches/fixthemepath.patch | 12 ++++++++++ srcpkgs/gtk-chtheme/template | 14 ++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 srcpkgs/gtk-chtheme/patches/Makeflie.patch create mode 100644 srcpkgs/gtk-chtheme/patches/fixthemepath.patch create mode 100644 srcpkgs/gtk-chtheme/template diff --git a/srcpkgs/gtk-chtheme/patches/Makeflie.patch b/srcpkgs/gtk-chtheme/patches/Makeflie.patch new file mode 100644 index 000000000000..b10f68111a96 --- /dev/null +++ b/srcpkgs/gtk-chtheme/patches/Makeflie.patch @@ -0,0 +1,22 @@ +Fix build. Some parts of this patch are borrowed from ArchLinux gtk-chtheme +package: +https://github.com/archlinux/svntogit-community/blob/packages/gtk-chtheme/trunk/PKGBUILD#L20 +--- gtk-chtheme-0.3.1/Makefile 2004-02-09 18:08:41.000000000 +0100 ++++ gtk-chtheme-0.3.1-patch/Makefile 2021-08-26 09:24:10.832781503 +0200 +@@ -4,7 +4,7 @@ + + LDFLAGS = $(shell pkg-config --libs gtk+-2.0) + CFLAGS += -Wall +-CFLAGS += $(shell pkg-config --cflags gtk+-2.0) -DGTK_DISABLE_BROKEN -DGTK_DISABLE_DEPRECATED ++CFLAGS += $(shell pkg-config --cflags gtk+-2.0) + CFLAGS += -DPROJNAME='"$(PROJNAME)"' -DVERSION='"$(VERSION)"' + CPPFLAGS = + CXXFLAGS = +@@ -38,7 +38,6 @@ + -rm -f $(EXENAME).spec $(EXENAME).1 Makefile.bak + + install: all +- strip $(EXENAME) + install -d $(DESTDIR)/$(BINDIR) + install -c $(EXENAME) $(DESTDIR)/$(BINDIR) + install -d $(DESTDIR)/$(MANDIR)/man1 diff --git a/srcpkgs/gtk-chtheme/patches/fixthemepath.patch b/srcpkgs/gtk-chtheme/patches/fixthemepath.patch new file mode 100644 index 000000000000..3e934a4b78a4 --- /dev/null +++ b/srcpkgs/gtk-chtheme/patches/fixthemepath.patch @@ -0,0 +1,12 @@ +This patch is borrowed from ArchLinux gtk-chtheme package: +https://github.com/archlinux/svntogit-community/blob/packages/gtk-chtheme/trunk/PKGBUILD#L20 +--- gtk-chtheme-0.3.1/main.c 2004-02-09 05:33:28.000000000 +0100 ++++ gtk-chtheme-0.3.1-patch/main.c 2021-08-26 09:42:56.387416081 +0200 +@@ -222,6 +222,7 @@ + init_new_stock_items(); + + read_theme_list(g_strconcat(getenv("HOME"), "/.themes", NULL)); ++ read_theme_list(g_strconcat(g_get_user_data_dir(), "/themes", NULL)); + read_theme_list(gtk_rc_get_theme_dir()); + + parse_gtkrc(); diff --git a/srcpkgs/gtk-chtheme/template b/srcpkgs/gtk-chtheme/template new file mode 100644 index 000000000000..b2b72e2b02a8 --- /dev/null +++ b/srcpkgs/gtk-chtheme/template @@ -0,0 +1,14 @@ +# Template file for 'gtk-chtheme' +pkgname=gtk-chtheme +version=0.3.1 +revision=1 +build_style=gnu-makefile +make_use_env=yes +hostmakedepends="pkg-config" +makedepends="gtk+-devel" +short_desc="Gtk+ 2.0 theme preview and selection made slick" +maintainer="meator " +license="GPL-2.0-or-later" +homepage="http://plasmasturm.org/code/gtk-chtheme/" +distfiles="http://plasmasturm.org/code/gtk-chtheme/gtk-chtheme-${version}.tar.bz2" +checksum=26f4b6dd60c220d20d612ca840b6beb18b59d139078be72c7b1efefc447df844