summaryrefslogtreecommitdiffstats
path: root/mingw-w64-gtk3
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2013-06-01 12:14:13 +0800
committerLAN-TW <lantw44@gmail.com>2013-06-01 12:14:13 +0800
commita4ec3c1385825e0e5faec6a6e26e97ddcb683ee4 (patch)
tree077ce4f50c1bcbc63c76de78601980ac9e57ee42 /mingw-w64-gtk3
parent3b9f6700ce4f7b30710499f6d553cfbfc0501ee5 (diff)
downloadAUR-PKGBUILD-a4ec3c1385825e0e5faec6a6e26e97ddcb683ee4.tar
AUR-PKGBUILD-a4ec3c1385825e0e5faec6a6e26e97ddcb683ee4.tar.gz
AUR-PKGBUILD-a4ec3c1385825e0e5faec6a6e26e97ddcb683ee4.tar.bz2
AUR-PKGBUILD-a4ec3c1385825e0e5faec6a6e26e97ddcb683ee4.tar.lz
AUR-PKGBUILD-a4ec3c1385825e0e5faec6a6e26e97ddcb683ee4.tar.xz
AUR-PKGBUILD-a4ec3c1385825e0e5faec6a6e26e97ddcb683ee4.tar.zst
AUR-PKGBUILD-a4ec3c1385825e0e5faec6a6e26e97ddcb683ee4.zip
mingw-w64-gtk3: use local patch files
Diffstat (limited to 'mingw-w64-gtk3')
-rw-r--r--mingw-w64-gtk3/PKGBUILD15
-rw-r--r--mingw-w64-gtk3/gtk-dont-define-initguid.patch11
2 files changed, 21 insertions, 5 deletions
diff --git a/mingw-w64-gtk3/PKGBUILD b/mingw-w64-gtk3/PKGBUILD
index 08009ed..290f433 100644
--- a/mingw-w64-gtk3/PKGBUILD
+++ b/mingw-w64-gtk3/PKGBUILD
@@ -15,19 +15,24 @@ mingw-w64-glib2
mingw-w64-cairo
'mingw-w64-gdk-pixbuf2>=2.27.1')
options=(!libtool !strip !buildflags)
+
source=(
"http://ftp.gnome.org/pub/gnome/sources/gtk+/${pkgver%.*}/gtk+-${pkgver}.tar.xz"
-"http://pkgs.fedoraproject.org/cgit/mingw-gtk3.git/plain/gtk-dont-define-initguid.patch?id=82ccf489f4763e375805d848351ac3f8fda8e88b"
-"https://git.gnome.org/browse/gtk+/plain/demos/gtk-demo/brick.png?h=gtk-3-8&id=231d6c209f47edac828f52a7316980129c370eb1")
+"https://git.gnome.org/browse/gtk+/plain/demos/gtk-demo/brick.png?h=gtk-3-8&id=231d6c209f47edac828f52a7316980129c370eb1"
+"gtk-dont-define-initguid.patch")
+
+# The second source file is downloaded from GNOME. This file exists in the git repository but not in the tarball. Building of demos will fail without this file.
+# The third source file is downloaded from Fedora Project
+
md5sums=('8e878e18fc385f2b813419dc7b40a968'
- '4038939df90f80ea6923d67afff28e03'
- '523aea0be651baaba128c133751a0f01')
+ '523aea0be651baaba128c133751a0f01'
+ '4038939df90f80ea6923d67afff28e03')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd "${srcdir}/gtk+-${pkgver}"
- patch -Np0 < '../gtk-dont-define-initguid.patch?id=82ccf489f4763e375805d848351ac3f8fda8e88b'
+ patch -Np0 < '../gtk-dont-define-initguid.patch'
for _arch in ${_architectures}; do
export CFLAGS="-O2 -mms-bitfields"
export CXXFLAGS="${CFLAGS}"
diff --git a/mingw-w64-gtk3/gtk-dont-define-initguid.patch b/mingw-w64-gtk3/gtk-dont-define-initguid.patch
new file mode 100644
index 0000000..5f41a48
--- /dev/null
+++ b/mingw-w64-gtk3/gtk-dont-define-initguid.patch
@@ -0,0 +1,11 @@
+--- gdk/win32/gdkdnd-win32.c.orig 2013-04-04 21:15:55.689671748 +0200
++++ gdk/win32/gdkdnd-win32.c 2013-04-04 21:16:02.083782327 +0200
+@@ -70,8 +70,6 @@
+ *
+ */
+
+-#define INITGUID
+-
+ #include "gdkdnd.h"
+ #include "gdkproperty.h"
+ #include "gdkinternals.h"