From 95cf19ab01384b0dc20d20970b1060abcd87b0ba Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Thu, 2 Oct 2014 16:21:26 +0200 Subject: [PATCH] Pacchettizzata libgtkform. --- packages/mingw-w64-libgtkform/.gitignore | 1 + .../001-no-install-hook.patch | 16 +++++++ packages/mingw-w64-libgtkform/002-path.patch | 47 +++++++++++++++++++ packages/mingw-w64-libgtkform/PKGBUILD | 47 +++++++++++++++++++ 4 files changed, 111 insertions(+) create mode 100644 packages/mingw-w64-libgtkform/.gitignore create mode 100644 packages/mingw-w64-libgtkform/001-no-install-hook.patch create mode 100644 packages/mingw-w64-libgtkform/002-path.patch create mode 100644 packages/mingw-w64-libgtkform/PKGBUILD diff --git a/packages/mingw-w64-libgtkform/.gitignore b/packages/mingw-w64-libgtkform/.gitignore new file mode 100644 index 0000000..c6abae4 --- /dev/null +++ b/packages/mingw-w64-libgtkform/.gitignore @@ -0,0 +1 @@ +libgtkform diff --git a/packages/mingw-w64-libgtkform/001-no-install-hook.patch b/packages/mingw-w64-libgtkform/001-no-install-hook.patch new file mode 100644 index 0000000..aee8550 --- /dev/null +++ b/packages/mingw-w64-libgtkform/001-no-install-hook.patch @@ -0,0 +1,16 @@ +diff --git a/Makefile.am b/Makefile.am +index 9256369..011cb4d 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -16,11 +16,6 @@ distclean-local: + rm -f ChangeLog; \ + fi + +-if PLATFORM_WIN32 +-install-data-hook: +- \cp -f -r $(prefix)/* /mingw +-endif +- + ChangeLog: + @echo Creating $@ + @if test -d "$(srcdir)/.git"; then \ diff --git a/packages/mingw-w64-libgtkform/002-path.patch b/packages/mingw-w64-libgtkform/002-path.patch new file mode 100644 index 0000000..e4c639f --- /dev/null +++ b/packages/mingw-w64-libgtkform/002-path.patch @@ -0,0 +1,47 @@ +diff --git a/libgtkform/Makefile.am b/libgtkform/Makefile.am +index ea9eb53..587b649 100644 +--- a/libgtkform/Makefile.am ++++ b/libgtkform/Makefile.am +@@ -48,7 +48,7 @@ libgtkform_include_HEADERS = form.h \ + libgtkform_includedir = $(includedir)/libgtkform + + install-exec-hook: +- mkdir -p "$(libdir)/$(PACKAGE)/modules" ++ mkdir -p "$(DESTDIR)$(libdir)/$(PACKAGE)/modules" + + uninstall-hook: +- rm -rf "$(libdir)/$(PACKAGE)" ++ rm -rf "$(DESTDIR)$(libdir)/$(PACKAGE)" +diff --git a/libgtkformui/Makefile.am b/libgtkformui/Makefile.am +index 1e3b1b5..f4b4830 100644 +--- a/libgtkformui/Makefile.am ++++ b/libgtkformui/Makefile.am +@@ -41,8 +41,8 @@ libgtkformui_include_HEADERS = gtkformdecoder.h \ + libgtkformui_includedir = $(includedir)/libgtkformui + + install-exec-hook: +- cd $(libdir)/$(PACKAGE)/modules && \ +- ln -s -f $(libmodulesdir)/libgtkformui$(libmodulesext) . ++ cd $(DESTDIR)$(libdir)/$(PACKAGE)/modules && \ ++ ln -s -f $(DESTDIR)$(libmodulesdir)/libgtkformui$(libmodulesext) . + + uninstall-hook: +- rm -f $(libdir)/$(PACKAGE)/modules/libgtkformui$(libmodulesext) ++ rm -f $(DESTDIR)$(libdir)/$(PACKAGE)/modules/libgtkformui$(libmodulesext) +diff --git a/libgtkformui/glade/Makefile.am b/libgtkformui/glade/Makefile.am +index 5ecb3e7..fdf6bfe 100644 +--- a/libgtkformui/glade/Makefile.am ++++ b/libgtkformui/glade/Makefile.am +@@ -19,8 +19,9 @@ libmodulesdir = $(libdir) + endif + + install-exec-hook: +- cd $(glademodulesdir) && \ +- ln -s -f $(libmodulesdir)/libgtkformui$(libmodulesext) libgtkformui$(libmodulesextglade) ++ mkdir -p $(DESTDIR)$(glademodulesdir) && \ ++ cd $(DESTDIR)$(glademodulesdir) && \ ++ ln -s -f $(DESTDIR)$(libmodulesdir)/libgtkformui$(libmodulesext) libgtkformui$(libmodulesextglade) + + uninstall-hook: +- rm -f $(glademodulesdir)/libgtkformui$(libmodulesextglade) ++ rm -f $(DESTDIR)$(glademodulesdir)/libgtkformui$(libmodulesextglade) diff --git a/packages/mingw-w64-libgtkform/PKGBUILD b/packages/mingw-w64-libgtkform/PKGBUILD new file mode 100644 index 0000000..8da66b4 --- /dev/null +++ b/packages/mingw-w64-libgtkform/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Andrea Zagli + +_realname=libgtkform +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" +pkgver=0.5.0 +pkgrel=1 +arch=('any') +pkgdesc="Library to make easy to bing form with db (libgda) (mingw-w64)" +depends=("${MINGW_PACKAGE_PREFIX}-libgda-full") +makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" + "${MINGW_PACKAGE_PREFIX}-gtk-doc" + "${MINGW_PACKAGE_PREFIX}-gnome-common" + "${MINGW_PACKAGE_PREFIX}-glade") +options=('strip' 'staticlibs') +license=("LGPL 2.1") +url="http://saetta.ns0.it/" +source=(git+http://saetta.ns0.it/git/${_realname}#branch=gtk3 + 001-no-install-hook.patch + 002-path.patch) +sha256sums=('SKIP' + '9f6d0bdd854173dbd2b44ad1f1ed9c5540ec542e588e82b3d73a3541761355c7' + 'c8aaadf971f2cb95d736571b6396cd82d3eb9e28bbca1ae46185e891040df56b') + +prepare() { + cd ${_realname} + + patch -p1 -i ${srcdir}/001-no-install-hook.patch + patch -p1 -i ${srcdir}/002-path.patch +} + +build() { + mkdir -p build-${MINGW_CHOST} + cd build-${MINGW_CHOST} + + ../${_realname}/autogen.sh \ + --host=${MINGW_CHOST} \ + --target=${MINGW_CHOST} \ + --build=${MINGW_CHOST} \ + --prefix=${MINGW_PREFIX} \ + --libexecdir=${MINGW_PREFIX}/lib + make V=1 +} + +package() { + cd "$srcdir/build-${MINGW_CHOST}" + make DESTDIR=$pkgdir install +} -- 2.49.0