From e48ee063968e2671152b5bb04e597f74f256ce45 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Thu, 2 Oct 2014 10:30:03 +0200 Subject: [PATCH] Pacchettizzata libgdaex. --- .../001-no-install-hook.patch | 16 +++++++ packages/mingw-w64-libgdaex/PKGBUILD | 43 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 packages/mingw-w64-libgdaex/001-no-install-hook.patch create mode 100644 packages/mingw-w64-libgdaex/PKGBUILD diff --git a/packages/mingw-w64-libgdaex/001-no-install-hook.patch b/packages/mingw-w64-libgdaex/001-no-install-hook.patch new file mode 100644 index 0000000..c39284e --- /dev/null +++ b/packages/mingw-w64-libgdaex/001-no-install-hook.patch @@ -0,0 +1,16 @@ +diff --git a/Makefile.am b/Makefile.am +index fa762b2..4a3435b 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -14,11 +14,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-libgdaex/PKGBUILD b/packages/mingw-w64-libgdaex/PKGBUILD new file mode 100644 index 0000000..4ba71a9 --- /dev/null +++ b/packages/mingw-w64-libgdaex/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Andrea Zagli + +_realname=libgdaex +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" +pkgver=0.5.0 +pkgrel=1 +arch=('any') +pkgdesc="Utilities for libgda (mingw-w64)" +depends=("${MINGW_PACKAGE_PREFIX}-libgda-full") +makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" + "${MINGW_PACKAGE_PREFIX}-gtk-doc" + "${MINGW_PACKAGE_PREFIX}-gnome-common") +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) +sha256sums=('SKIP' + 'fea470f8dcc29d054efec257cec96bdfb234ba9f081cfafccdb1ee28ae2376c7') + +prepare() { + cd ${_realname} + + patch -p1 -i ${srcdir}/001-no-install-hook.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 +} + +package() { + cd "$srcdir/build-${MINGW_CHOST}" + make DESTDIR=$pkgdir install +} -- 2.49.0