]> saetta.ns0.it Git - msys2/commitdiff
Pacchettizzata libsolipa.
authorAndrea Zagli <azagli@libero.it>
Thu, 2 Oct 2014 14:34:02 +0000 (16:34 +0200)
committerAndrea Zagli <azagli@libero.it>
Thu, 2 Oct 2014 14:34:02 +0000 (16:34 +0200)
packages/mingw-w64-libsolipa/.gitignore [new file with mode: 0644]
packages/mingw-w64-libsolipa/001-no-install-hook.patch [new file with mode: 0644]
packages/mingw-w64-libsolipa/002-no-gnome-vfs.patch [new file with mode: 0644]
packages/mingw-w64-libsolipa/PKGBUILD [new file with mode: 0644]

diff --git a/packages/mingw-w64-libsolipa/.gitignore b/packages/mingw-w64-libsolipa/.gitignore
new file mode 100644 (file)
index 0000000..6a8a150
--- /dev/null
@@ -0,0 +1 @@
+libsolipa
diff --git a/packages/mingw-w64-libsolipa/001-no-install-hook.patch b/packages/mingw-w64-libsolipa/001-no-install-hook.patch
new file mode 100644 (file)
index 0000000..577a10e
--- /dev/null
@@ -0,0 +1,16 @@
+diff --git a/Makefile.am b/Makefile.am
+index 62dfcb9..ab58f71 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-libsolipa/002-no-gnome-vfs.patch b/packages/mingw-w64-libsolipa/002-no-gnome-vfs.patch
new file mode 100644 (file)
index 0000000..0670e0c
--- /dev/null
@@ -0,0 +1,12 @@
+diff --git a/configure.ac b/configure.ac
+index 1477dc9..0302e63 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -34,7 +34,6 @@ PKG_CHECK_MODULES(SOLIPA, [libgdaex >= 0.5.0
+                            libgtkform >= 0.5.0
+                            gio-2.0 >= 2.36
+                            gio-windows-2.0 >= 2.36
+-                           gnome-vfs-module-2.0
+                            gtk+-3.0 >= 3.0
+                            gtk+-win32-3.0 >= 3.0])
diff --git a/packages/mingw-w64-libsolipa/PKGBUILD b/packages/mingw-w64-libsolipa/PKGBUILD
new file mode 100644 (file)
index 0000000..3baadd3
--- /dev/null
@@ -0,0 +1,48 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=libsolipa
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=0.5.0
+pkgrel=1
+arch=('any')
+pkgdesc="Library of utilities (mingw-w64)"
+depends=("${MINGW_PACKAGE_PREFIX}-libgdaex"
+         "${MINGW_PACKAGE_PREFIX}-libgtkform"
+         "${MINGW_PACKAGE_PREFIX}-evolution-data-server")
+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/solipa/${_realname}#branch=gtk3
+        001-no-install-hook.patch
+        002-no-gnome-vfs.patch)
+sha256sums=('SKIP'
+            'cc18f322e5cc14ce27730f6d7cb77ea8f216231f4334201e03a4435a209d8045'
+            '643a4ba886e5a91f16aed29a386ed27b5a81db78da160699de59aa1cab39077f')
+
+prepare() {
+  cd ${_realname}
+
+  patch -p1 -i ${srcdir}/001-no-install-hook.patch
+  patch -p1 -i ${srcdir}/002-no-gnome-vfs.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
+}