]> saetta.ns0.it Git - msys2/commitdiff
gplugin: aggiustamenti/rifiniture.
authorAndrea Zagli <azagli@libero.it>
Sun, 17 May 2015 19:17:19 +0000 (21:17 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 21 Apr 2018 13:14:27 +0000 (15:14 +0200)
packages/mingw-w64-gplugin/PKGBUILD

index 663b90f79fc58bbf71aead7a50819d5e91c321b6..1c7f5480a355650c3c3d1630a631cd3f9f99e929 100644 (file)
@@ -5,9 +5,9 @@ pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
 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"
@@ -22,7 +22,7 @@ sha256sums=('fe0d6e450ff9f63e866bf75344cb561985dccae1e89e4162c20d07d961b71fc9'
 prepare() {
   cd rw_grim-gplugin-9f4dea11d6eb
 
-  patch -b -V simple -p1 -i ${srcdir}/001-win.patch
+  patch -p1 -i ${srcdir}/001-win.patch
 }
 
 build() {
@@ -48,6 +48,12 @@ 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"
+
+  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
 }