]> saetta.ns0.it Git - msys2/commitdiff
gimagereader: aggiustameti.
authorAndrea Zagli <azagli@libero.it>
Sat, 23 May 2015 15:23:49 +0000 (17:23 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 21 Apr 2018 13:14:28 +0000 (15:14 +0200)
packages/mingw-w64-gimagereader/001-win.patch [new file with mode: 0644]
packages/mingw-w64-gimagereader/PKGBUILD

diff --git a/packages/mingw-w64-gimagereader/001-win.patch b/packages/mingw-w64-gimagereader/001-win.patch
new file mode 100644 (file)
index 0000000..e69de29
index 18c7a8f4990fcb26f852f5c71201909089c74d10..eec29659a0c8064e49d2850ff90315daefeea7dc 100644 (file)
@@ -8,23 +8,23 @@ arch=('any')
 pkgdesc="A simple Gtk/Qt front-end to tesseract-ocr (mingw-w64)"
 license=("LGPL 2")
 url="https://github.com/manisandro/gImageReader"
-depends=("${MINGW_PACKAGE_PREFIX}-gtk3mm"
-         "${MINGW_PACKAGE_PREFIX}-libxslt")
+depends=("${MINGW_PACKAGE_PREFIX}-gtkmm3"
+         "${MINGW_PACKAGE_PREFIX}-gtkspellmm")
 makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
              "${MINGW_PACKAGE_PREFIX}-gcc"
              "${MINGW_PACKAGE_PREFIX}-gobject-introspection"
              "${MINGW_PACKAGE_PREFIX}-pkg-config"
              "gettext")
 options=('strip' '!debug' 'staticlibs')
-source=("${_realname}-${pkgver}.tar.bz2"::https://bitbucket.org/rw_grim/${_realname}/get/v$pkgver.tar.bz2
+source=("${_realname}-${pkgver}.tar.bz2"::https://github.com/manisandro/gImageReader/archive/v${pkgver}.tar.gz
         001-win.patch)
-sha256sums=('fe0d6e450ff9f63e866bf75344cb561985dccae1e89e4162c20d07d961b71fc9'
-            '583b969c8d67fd303cf219e5a6f475be8f4f535711324966efc57479fe031153')
+sha256sums=('1266c22d88a3f5e9a46ba7b04f81ff3e37c0a2b58d4b9c56d1b030c31c09c241'
+            'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855')
 
 prepare() {
-  cd rw_grim-gplugin-9f4dea11d6eb
+  cd ${_realname}-$pkgver
 
-  patch -p1 -i ${srcdir}/001-win.patch
+  #patch -p1 -i ${srcdir}/001-win.patch
 }
 
 build() {
@@ -37,13 +37,9 @@ build() {
     -DCMAKE_SKIP_RPATH=ON \
     -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
     -DCMAKE_C_FLAGS="${CFLAGS}" \
-    -DBUILD_GJS="Off" \
-    -DBUILD_LUA="Off" \
-    -DBUILD_PYTHON="Off" \
-    -DBUILD_SEED="Off" \
-    -DTESTING_ENABLED="Off" \
     -G "MSYS Makefiles" \
-   ../rw_grim-gplugin-9f4dea11d6eb
+    -DINTERFACE_TYPE=gtk \
+   ../gImageReader-${pkgver}
 
   make
 }
@@ -52,13 +48,5 @@ package() {
   cd "$srcdir/build-${MINGW_CHOST}"
   make install
 
-  install -Dm644 "${srcdir}/rw_grim-gplugin-9f4dea11d6eb/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
-
-  mv "$pkgdir${MINGW_PREFIX}/lib/libgplugin.dll" "$pkgdir${MINGW_PREFIX}/bin"
-  mv "$pkgdir${MINGW_PREFIX}/lib/libgplugin-gtk.dll" "$pkgdir${MINGW_PREFIX}/bin"
-
-  local MINGW_PREFIX_W=$(cygpath -m "${pkgdir}${MINGW_PREFIX}")
-  sed -e "s#${MINGW_PREFIX_W}#${MINGW_PREFIX}#g" \
-    -i "${pkgdir}${MINGW_PREFIX}"/lib/pkgconfig/gplugin.pc \
-    -i "${pkgdir}${MINGW_PREFIX}"/lib/pkgconfig/gplugin-gtk.pc
+  install -Dm644 "${srcdir}/gImageReader-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
 }