pkgver=0.0.18
pkgrel=1
arch=('any')
-pkgdesc="An Open Source implementation of the iCalendar protocols and protocol data units (mingw-w64)"
-license=("LGPL 2.1")
-url="https://github.com/libical/libical"
+pkgdesc="A GObject based library that implements a reusable plugin system (mingw-w64)"
+license=("LGPL 2")
+url="https://bitbucket.org/rw_grim/gplugin"
depends=("${MINGW_PACKAGE_PREFIX}-gtk3"
"${MINGW_PACKAGE_PREFIX}-libxslt")
makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
prepare() {
cd rw_grim-gplugin-9f4dea11d6eb
- patch -b -V simple -p1 -i ${srcdir}/001-win.patch
+ patch -p1 -i ${srcdir}/001-win.patch
}
build() {
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"
+
+ MINGW_PREFIX_W=$(cygpath -m "$pkgdir${MINGW_PREFIX}")
+ sed -i "s#${MINGW_PREFIX_W}#${MINGW_PREFIX}#g" "$pkgdir"${MINGW_PREFIX}/lib/pkgconfig/gplugin.pc
+ sed -i "s#${MINGW_PREFIX_W}#${MINGW_PREFIX}#g" "$pkgdir"${MINGW_PREFIX}/lib/pkgconfig/gplugin-gtk.pc
}