diff --git a/MINGW-packages/mingw-w64-gtksourceview3/0006-hack-convert-path-back-to-unix.patch b/MINGW-packages/mingw-w64-gtksourceview3/0006-hack-convert-path-back-to-unix.patch new file mode 100644 index 0000000..68f217f --- /dev/null +++ b/MINGW-packages/mingw-w64-gtksourceview3/0006-hack-convert-path-back-to-unix.patch @@ -0,0 +1,15 @@ +--- gtksourceview-3.13.90/configure.ac.orig 2014-08-22 00:42:28.532000000 +0400 ++++ gtksourceview-3.13.90/configure.ac 2014-08-22 00:43:00.621200000 +0400 +@@ -133,6 +133,12 @@ + AC_MSG_RESULT([$GLADE_CATALOG_DIR]) + AC_SUBST(GLADE_CATALOG_DIR)]) + ++case "$host" in ++ *-*-mingw*) ++ GLADE_CATALOG_DIR=`cygpath -u $GLADE_CATALOG_DIR` ++ ;; ++esac ++ + # i18N stuff + IT_PROG_INTLTOOL([0.40]) + AS_IF([test "$USE_NLS" = "yes"], diff --git a/MINGW-packages/mingw-w64-gtksourceview3/PKGBUILD b/MINGW-packages/mingw-w64-gtksourceview3/PKGBUILD new file mode 100644 index 0000000..038333a --- /dev/null +++ b/MINGW-packages/mingw-w64-gtksourceview3/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: Alexey Pavlov + +_realname=gtksourceview +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}3" +pkgver=3.12.0 +pkgrel=2 +pkgdesc="A text widget adding syntax highlighting and more to GNOME (mingw-w64)" +arch=('any') +url="http://www.gnome.org" +license=("LGPL") +makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" + "${MINGW_PACKAGE_PREFIX}-pkg-config" + "${MINGW_PACKAGE_PREFIX}-gobject-introspection" + "${MINGW_PACKAGE_PREFIX}-glade" + "${MINGW_PACKAGE_PREFIX}-vala" + "intltool" + "gtk-doc") +depends=("${MINGW_PACKAGE_PREFIX}-gtk3" + "${MINGW_PACKAGE_PREFIX}-libxml2") +options=(!libtool strip staticlibs) +source=("http://ftp.gnome.org/pub/gnome/sources/gtksourceview/${pkgver%.*}/gtksourceview-${pkgver}.tar.xz" + 0006-hack-convert-path-back-to-unix.patch) +md5sums=('8850fc0aee4893668ede37a30ef05e85' + '324c9e3bb2e4fa2a4977653ce6ed6ef9') + +prepare() { + cd ${_realname}-${pkgver} + patch -p1 -i ${srcdir}/0006-hack-convert-path-back-to-unix.patch + + autoreconf -fi +} + +build() { + mkdir -p "${srcdir}/build-${MINGW_CHOST}" + cd "${srcdir}/build-${MINGW_CHOST}" + + mkdir -p docs/reference/html + cp -rf ../${_realname}-${pkgver}/docs/reference/html/* docs/reference/html + + DATADIRNAME=share \ + ../${_realname}-${pkgver}/configure \ + --prefix=${MINGW_PREFIX} \ + --build=${MINGW_CHOST} \ + --host=${MINGW_CHOST} \ + --enable-shared \ + --disable-static \ + --enable-glade-catalog + + LC_ALL=C make +} + +package() { + cd "${srcdir}/build-${MINGW_CHOST}" + make -j1 DESTDIR="${pkgdir}" install + + for ff in ${pkgdir}/${MINGW_PREFIX}/bin/libgtksourceview*.dll; do + local _reallib=$(basename $ff) + _reallib=${_reallib%.dll} + _reallib=${_reallib#lib} + sed -e "s|library=\"gtksourceview-3.0\"|library=\"${_reallib}\"|g" -i ${pkgdir}/${MINGW_PREFIX}/share/glade/catalogs/gtksourceview.xml + done + + install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING" +} diff --git a/MINGW-packages/mingw-w64-gtksourceviewmm3/PKGBUILD b/MINGW-packages/mingw-w64-gtksourceviewmm3/PKGBUILD new file mode 100644 index 0000000..e76c572 --- /dev/null +++ b/MINGW-packages/mingw-w64-gtksourceviewmm3/PKGBUILD @@ -0,0 +1,33 @@ +_realname=gtksourceviewmm3 +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" +pkgver=3.12.0 +pkgrel=1 +pkgdesc="C++ bindings for gtksourceview3 (mingw-w64)" +arch=('any') +url="https://developer.gnome.org/gtksourceviewmm/" +license=("LGPL") +makedepends=("patch" "${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-pkg-config") +depends=("${MINGW_PACKAGE_PREFIX}-gtksourceview3=3.12.0") +options=('staticlibs' 'strip') +source=("https://download.gnome.org/sources/gtksourceviewmm/${pkgver%.*}/gtksourceviewmm-${pkgver}.tar.xz") +sha256sums=("73939031bcc60e6ad31a315ec84b132deba15e5732de16e75fe424a619267ace") + +build() { + mkdir -p "${srcdir}/build-${MINGW_CHOST}" + cd "${srcdir}/build-${MINGW_CHOST}" + ../gtksourceviewmm-${pkgver}/configure \ + CXXFLAGS=-std=c++11 \ + --prefix=${MINGW_PREFIX} \ + --build=${MINGW_CHOST} \ + --host=${MINGW_CHOST} \ + --enable-shared \ + --enable-static \ + --disable-documentation + make +} + +package() { + cd "${srcdir}/build-${MINGW_CHOST}" + make DESTDIR="${pkgdir}" install + find "${pkgdir}${MINGW_PREFIX}" -name '*.def' -o -name '*.exp' | xargs -rtl1 rm +} \ No newline at end of file