]> saetta.ns0.it Git - msys2/commitdiff
gtkspellmm: nuovo pacchetto WIP.
authorAndrea Zagli <azagli@libero.it>
Sat, 23 May 2015 14:48:54 +0000 (16:48 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 21 Apr 2018 13:14:27 +0000 (15:14 +0200)
packages/mingw-w64-gtkspellmm/PKGBUILD [new file with mode: 0644]

diff --git a/packages/mingw-w64-gtkspellmm/PKGBUILD b/packages/mingw-w64-gtkspellmm/PKGBUILD
new file mode 100644 (file)
index 0000000..c9e26aa
--- /dev/null
@@ -0,0 +1,54 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=gtkspellmm
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=3.0.3
+pkgrel=1
+pkgdesc="Provides word-processor-style highlighting and replacement of misspelled words in a GtkTextView widget (C++ binding) (mingw-w64)"
+arch=('any')
+url="http://gtkspell.sourceforge.net/"
+license=("GPL 2")
+makedepends=("gtk-doc"
+            "${MINGW_PACKAGE_PREFIX}-gcc"
+            "${MINGW_PACKAGE_PREFIX}-pkg-config"
+            "${MINGW_PACKAGE_PREFIX}-vala"
+            "${MINGW_PACKAGE_PREFIX}-gobject-introspection"
+            "${MINGW_PACKAGE_PREFIX}-iso-codes"
+            "intltool")
+depends=("${MINGW_PACKAGE_PREFIX}-gtkspell3"
+         "${MINGW_PACKAGE_PREFIX}-gtkmm3")
+options=(!libtool strip staticlibs)
+source=(http://sourceforge.net/projects/gtkspell/files/${_realname}/${_realname}-${pkgver}.tar.gz)
+sha256sums=('f9dcc0991621c08e7a972f33487afd6b37491468f0b654f50c741a7e6d810624')
+
+prepare() {
+  cd ${_realname}-$pkgver
+
+  mm-common-prepare --copy --force "$srcdir"
+  autoreconf -fi
+}
+
+build() {
+  [[ -d build-${MINGW_CHOST} ]] && rm -rf build-${MINGW_CHOST}
+  mkdir -p "${srcdir}/build-${MINGW_CHOST}"
+  cd "${srcdir}/build-${MINGW_CHOST}"
+
+  mkdir -p doc/reference/html
+  cp -rf ../${_realname}-${pkgver}/doc/reference/html/* doc/reference/html
+
+  ../${_realname}-${pkgver}/configure \
+    --prefix=${MINGW_PREFIX} \
+    --build=${MINGW_CHOST} \
+    --host=${MINGW_CHOST} \
+    --enable-shared \
+    --disable-static \
+    --enable-gtk2
+  make
+}
+
+package() {
+  cd "${srcdir}/build-${MINGW_CHOST}"
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+}