From e82fc922bf02178eb13bf3aa966f2fe242ab6170 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sat, 25 Jul 2015 21:56:43 +0200 Subject: [PATCH] gtk-theme-config: update to 1.0; fix crossbuild; use http instead of git. --- .../patches/no_cc_for_vala.patch | 20 +++++++++++++++++++ srcpkgs/gtk-theme-config/template | 18 +++++------------ 2 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 srcpkgs/gtk-theme-config/patches/no_cc_for_vala.patch diff --git a/srcpkgs/gtk-theme-config/patches/no_cc_for_vala.patch b/srcpkgs/gtk-theme-config/patches/no_cc_for_vala.patch new file mode 100644 index 0000000000..e9ee405996 --- /dev/null +++ b/srcpkgs/gtk-theme-config/patches/no_cc_for_vala.patch @@ -0,0 +1,20 @@ +--- Makefile.orig 2015-07-25 21:11:40.397311183 +0200 ++++ Makefile 2015-07-25 21:11:59.561311865 +0200 +@@ -1,5 +1,5 @@ +-CC=valac +-CFLAGS=--pkg gtk+-3.0 +-LDFLAGS=-X -lm ++VALAC=valac ++VALACFLAGS=--pkg gtk+-3.0 ++VALALDFLAGS=-X -lm + SOURCE=gtk-theme-config.vala + BINARY=gtk-theme-config +@@ -14,7 +14,7 @@ INSTALL_DATA=$(INSTALL) -Dpm 0644 + all: $(BINARY) + + $(BINARY): $(SOURCE) +- $(CC) $(CFLAGS) $(LDFLAGS) $(SOURCE) -o $(BINARY) ++ $(VALAC) $(VALACFLAGS) $(VALALDFLAGS) $(SOURCE) -o $(BINARY) + + clean: + $(CLEAN) $(BINARY) diff --git a/srcpkgs/gtk-theme-config/template b/srcpkgs/gtk-theme-config/template index 2251514062..88cf8cebef 100644 --- a/srcpkgs/gtk-theme-config/template +++ b/srcpkgs/gtk-theme-config/template @@ -1,23 +1,15 @@ # Template file for 'gtk-theme-config' pkgname=gtk-theme-config -version=20140605 +version=1.0 +reverts=20140605_1 revision=1 build_style=gnu-makefile -hostmakedepends="pkg-config git" +hostmakedepends="pkg-config vala-devel" makedepends="glib-devel vala-devel gtk+3-devel hicolor-icon-theme desktop-file-utils" depends="hicolor-icon-theme desktop-file-utils" short_desc="Utility to set GTK Theme Preferences" maintainer="Juan RP " license="GPL-3" homepage="https://github.com/satya164/gtk-theme-config" - -do_fetch() { - local url="git://github.com/satya164/gtk-theme-config.git" - msg_normal "Fetching source from $url ...\n" - git clone ${url} ${pkgname}-${version} -} - -do_build() { - unset CC CFLAGS - make -} +distfiles="$homepage/archive/v$version.tar.gz" +checksum=174aac3ea43966168d120dbd9e0f23d7900d095ee1b0cf32472d59b0fdea8448