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() {
-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
}
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"
}