]> saetta.ns0.it Git - msys2/commitdiff
nautilus: file per pacchetto WIP.
authorAndrea Zagli <azagli@libero.it>
Wed, 8 Apr 2015 06:53:50 +0000 (08:53 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 21 Apr 2018 13:13:21 +0000 (15:13 +0200)
packages/mingw-w64-nautilus/PKGBUILD [new file with mode: 0644]
packages/mingw-w64-nautilus/nautilus-i686.install [new file with mode: 0644]
packages/mingw-w64-nautilus/nautilus-x86_64.install [new file with mode: 0644]

diff --git a/packages/mingw-w64-nautilus/PKGBUILD b/packages/mingw-w64-nautilus/PKGBUILD
new file mode 100644 (file)
index 0000000..476c2cf
--- /dev/null
@@ -0,0 +1,57 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=nautils
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=3.16.0
+pkgrel=1
+arch=('any')
+pkgdesc="GNOME PO files editor (mingw-w64)"
+options=(strip staticlibs)
+depends=("${MINGW_PACKAGE_PREFIX}-glib2"
+         "${MINGW_PACKAGE_PREFIX}-gtk3"
+         "${MINGW_PACKAGE_PREFIX}-gsettings-desktop-schemas")
+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=('46807d17a089e8308b0089e39b83aae01a186921c893f3a50ff1b51d28443dcb'
+            '25d8a61f80c8ab6ed329bd3b58466b93120ac9b0111c3ad57a11c3dc9935d6f3')
+
+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}
+
+  mkdir -p docs/reference/gdict/html
+  cp -rf ../${_realname}-${pkgver}/docs/reference/gdict/html/* docs/reference/gdict/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"
+  install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING.docs" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING.docs"
+  install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING.libs" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING.libs"
+}
diff --git a/packages/mingw-w64-nautilus/nautilus-i686.install b/packages/mingw-w64-nautilus/nautilus-i686.install
new file mode 100644 (file)
index 0000000..fcc957e
--- /dev/null
@@ -0,0 +1,11 @@
+post_install() {
+  mingw32/bin/glib-compile-schemas mingw32/share/glib-2.0/schemas
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}
diff --git a/packages/mingw-w64-nautilus/nautilus-x86_64.install b/packages/mingw-w64-nautilus/nautilus-x86_64.install
new file mode 100644 (file)
index 0000000..6bcf507
--- /dev/null
@@ -0,0 +1,11 @@
+post_install() {
+  mingw64/bin/glib-compile-schemas mingw64/share/glib-2.0/schemas
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}