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

diff --git a/packages/mingw-w64-gtksourceviewmm/PKGBUILD b/packages/mingw-w64-gtksourceviewmm/PKGBUILD
new file mode 100644 (file)
index 0000000..2d04f2b
--- /dev/null
@@ -0,0 +1,50 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=gtksourceviewmm
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=3.12.0
+pkgrel=1
+arch=('any')
+pkgdesc="C++ bindings for GtkSourceView (mingw-w64)"
+depends=("${MINGW_PACKAGE_PREFIX}-gtksourceview3"
+         "${MINGW_PACKAGE_PREFIX}-gtkmm3"
+         "${MINGW_PACKAGE_PREFIX}-cairomm"
+         "${MINGW_PACKAGE_PREFIX}-pangomm")
+makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
+             "gtk-doc"
+             "${MINGW_PACKAGE_PREFIX}-pkg-config")
+options=('!strip' 'debug' 'staticlibs')
+license=("LGPL 2.1")
+url="http://www.gnome.org/"
+source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver:0:4}/${_realname}-$pkgver.tar.xz)
+sha256sums=('73939031bcc60e6ad31a315ec84b132deba15e5732de16e75fe424a619267ace')
+
+prepare() {
+  cd ${_realname}-${pkgver}
+
+  autoreconf -fi
+}
+
+build() {
+  [[ -d build-${MINGW_CHOST} ]] && rm -rf build-${MINGW_CHOST}
+  mkdir -p build-${MINGW_CHOST}
+  cd build-${MINGW_CHOST}
+
+  mkdir -p docs/reference/html
+  cp -rf ../${_realname}-${pkgver}/docs/reference/html/* docs/reference/html
+
+  ../${_realname}-${pkgver}/configure \
+    --host=${MINGW_CHOST} \
+    --target=${MINGW_CHOST} \
+    --build=${MINGW_CHOST} \
+    --prefix=${MINGW_PREFIX} \
+    --libexecdir=${MINGW_PREFIX}/lib
+  make
+}
+
+package() {
+  cd "$srcdir/build-${MINGW_CHOST}"
+  make DESTDIR=$pkgdir install
+
+  install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+}