]> saetta.ns0.it Git - msys2/commitdiff
gnome-builder: nuovo pacchetto WIP.
authorAndrea Zagli <azagli@libero.it>
Fri, 1 May 2015 09:37:21 +0000 (11:37 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 21 Apr 2018 13:14:26 +0000 (15:14 +0200)
packages/mingw-w64-gnome-builder/001-win.patch [new file with mode: 0644]
packages/mingw-w64-gnome-builder/PKGBUILD [new file with mode: 0644]
packages/mingw-w64-gnome-builder/gnome-builder-i686.install [new file with mode: 0644]
packages/mingw-w64-gnome-builder/gnome-builder-x86_64.install [new file with mode: 0644]

diff --git a/packages/mingw-w64-gnome-builder/001-win.patch b/packages/mingw-w64-gnome-builder/001-win.patch
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/mingw-w64-gnome-builder/PKGBUILD b/packages/mingw-w64-gnome-builder/PKGBUILD
new file mode 100644 (file)
index 0000000..8a6e128
--- /dev/null
@@ -0,0 +1,55 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=gnome-builder
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=3.16.2
+pkgrel=1
+arch=('any')
+pkgdesc="An IDE for writing GNOME-based software (mingw-w64)"
+options=(strip staticlibs)
+depends=("${MINGW_PACKAGE_PREFIX}-glib2"
+         "${MINGW_PACKAGE_PREFIX}-gtk3"
+         "${MINGW_PACKAGE_PREFIX}-gsettings-desktop-schemas"
+         "${MINGW_PACKAGE_PREFIX}-libgit2-glib"
+         "${MINGW_PACKAGE_PREFIX}-clang"
+         "${MINGW_PACKAGE_PREFIX}-llvm")
+makedepends=("${MINGW_PACKAGE_PREFIX}-pkg-config"
+             "${MINGW_PACKAGE_PREFIX}-vala"
+             "${MINGW_PACKAGE_PREFIX}-gobject-introspection"
+             "gtk-doc")
+license=("LGPL 2.1")
+url="http://www.gnome.org"
+install=${_realname}-${CARCH}.install
+source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver%.*}/${_realname}-$pkgver.tar.xz
+        001-win.patch)
+sha256sums=('29bce3b39a0745c8ad538ee5051754b14d6d946f382bcc149a44ee53557cbbfd'
+            'SKIP')
+
+prepare() {
+  cd "${srcdir}"/${_realname}-${pkgver}
+
+  patch -b -V simple -p1 -i ${srcdir}/001-win.patch
+
+  autoreconf -f -i
+}
+
+build() {
+  mkdir -p build-${MINGW_CHOST}
+  cd build-${MINGW_CHOST}
+
+  ../${_realname}-${pkgver}/configure \
+    --host=${MINGW_CHOST} \
+    --target=${MINGW_CHOST} \
+    --build=${MINGW_CHOST} \
+    --prefix=${MINGW_PREFIX} \
+    --libexecdir=${MINGW_PREFIX}/lib
+
+  make V=1
+}
+
+package() {
+  cd "$srcdir/build-${MINGW_CHOST}"
+  make DESTDIR=$pkgdir install
+
+  install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+}
diff --git a/packages/mingw-w64-gnome-builder/gnome-builder-i686.install b/packages/mingw-w64-gnome-builder/gnome-builder-i686.install
new file mode 100644 (file)
index 0000000..9a4b51f
--- /dev/null
@@ -0,0 +1,12 @@
+post_install() {
+  mingw32/bin/glib-compile-schemas mingw32/share/glib-2.0/schemas
+  mingw32/bin/gtk-update-icon-cache-3.0 -f -t /mingw32/share/icons/hicolor
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}
diff --git a/packages/mingw-w64-gnome-builder/gnome-builder-x86_64.install b/packages/mingw-w64-gnome-builder/gnome-builder-x86_64.install
new file mode 100644 (file)
index 0000000..db00db4
--- /dev/null
@@ -0,0 +1,12 @@
+post_install() {
+  mingw64/bin/glib-compile-schemas mingw64/share/glib-2.0/schemas
+  mingw64/bin/gtk-update-icon-cache-3.0 -f -t /mingw64/share/icons/hicolor
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}