[arch-commits] Commit in nemo-extensions/trunk (PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Thu Nov 1 19:47:58 UTC 2018


    Date: Thursday, November 1, 2018 @ 19:47:57
  Author: eschwartz
Revision: 401146

upgpkg: nemo-extensions 4.0.0-1

upstream release
nemo-python ported to meson
add optdepends on cinnamon-translations where appropriate

Modified:
  nemo-extensions/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++++++++++---------
 1 file changed, 18 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-01 19:47:45 UTC (rev 401145)
+++ PKGBUILD	2018-11-01 19:47:57 UTC (rev 401146)
@@ -17,7 +17,7 @@
         #'nemo-media-columns'
         #'nemo-pastebin'
         #'nemo-repairer'
-pkgver=3.8.0
+pkgver=4.0.0
 pkgrel=1
 pkgdesc="Various extensions for Nemo"
 arch=('x86_64')
@@ -27,20 +27,17 @@
 _preview_deps=('cjs' 'clutter-gtk' 'clutter-gst' 'libmusicbrainz5' 'gtksourceview3' 'xreader')
 _python_deps=('python2-gobject')
 _seahorse_deps=('libcryptui' 'libgnome-keyring')
-makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
+makedepends=('intltool' 'gobject-introspection' 'meson')
 makedepends+=("${_preview_deps[@]}" "${_python_deps[@]}" "${_seahorse_deps[@]}")
 options=('!emptydirs')
 source=("${pkgbase}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz"
         "nemo-seahorse-gnupg.patch")
-sha256sums=('15855cf7880290c8e9956f894d8e3c6fb0bee996783b2af63ae66dc019e739a8'
+sha256sums=('4bee7336554fd3c6e87371bc4683e5bee989a67030582b89a050aad5874a04de'
             'ba6ae77a7d6727088e49aae2dc2c89c77c44f1ea19ee48956481d673d97caa36')
 
 prepare() {
     cd "${srcdir}"/${pkgbase}-${pkgver}
 
-    # Fix path for nemo-python
-    sed -i 's|libdirsuffix="/i386-linux-gnu/"|libdirsuffix=""|' nemo-python/m4/python.m4
-
     # Delete deprecated gnome-common macros, even their standard autoconf-archive replacements are
     # annoying to people who actually set $C(XX)?FLAGS. This drops the unneeded dependency on gnome-common
     sed -i '/^GNOME_/d' nemo-image-converter/configure.ac
@@ -76,6 +73,11 @@
         popd
     done
 
+    mkdir -p nemo-python/build
+    pushd nemo-python/build
+    meson --prefix=/usr --buildtype=plain ..
+    ninja
+
     # # nemo-pastebin
     # cd nemo-pastebin
     # python2 ./setup.py build --build-base ${srcdir}/build/ || return 1
@@ -89,6 +91,7 @@
 package_nemo-fileroller(){
     pkgdesc="File archiver extension for Nemo"
     depends+=('file-roller')
+    optdepends=('cinnamon-translations: i18n')
 
     cd "${srcdir}"/${pkgbase}-${pkgver}/${pkgname}
     make DESTDIR="${pkgdir}" install
@@ -97,6 +100,7 @@
 package_nemo-image-converter(){
     pkgdesc="Nemo extension to rotate/resize image files"
     depends+=('imagemagick')
+    optdepends=('cinnamon-translations: i18n')
 
     cd "${srcdir}"/${pkgbase}-${pkgver}/${pkgname}
     make DESTDIR="${pkgdir}" install
@@ -105,6 +109,7 @@
 package_nemo-preview(){
     pkgdesc="Quick file previewer for Nemo"
     depends+=("${_preview_deps[@]}")
+    optdepends=('cinnamon-translations: i18n')
 
     cd "${srcdir}"/${pkgbase}-${pkgver}/${pkgname}
     make DESTDIR="${pkgdir}" install
@@ -111,16 +116,17 @@
 }
 
 package_nemo-python() {
-    pkgdesc="Python2 binding for Nemo components"
+    pkgdesc="Python3 binding for Nemo components"
     depends+=("${_python_deps[@]}")
 
-    cd "${srcdir}"/${pkgbase}-${pkgver}/${pkgname}
-    make DESTDIR="${pkgdir}" install
+    cd "${srcdir}"/${pkgbase}-${pkgver}/${pkgname}/build
+    DESTDIR="${pkgdir}" ninja install
 }
 
 package_nemo-seahorse(){
     pkgdesc="PGP encryption and signing extension for Nemo"
     depends+=("${_seahorse_deps[@]}")
+    optdepends=('cinnamon-translations: i18n')
 
     cd "${srcdir}"/${pkgbase}-${pkgver}/${pkgname}
     make DESTDIR="${pkgdir}" install
@@ -129,6 +135,7 @@
 package_nemo-share(){
     pkgdesc="Samba extension for Nemo"
     depends+=('samba')
+    optdepends=('cinnamon-translations: i18n')
 
     cd "${srcdir}"/${pkgbase}-${pkgver}/${pkgname}
     make DESTDIR="${pkgdir}" install
@@ -141,6 +148,8 @@
     cd "${srcdir}"/${pkgbase}-${pkgver}/${pkgname}
     install -Dm644 src/nemo_terminal.py \
         "${pkgdir}"/usr/share/nemo-python/extensions/nemo_terminal.py
+    install -Dm755 src/nemo-terminal-prefs.py \
+        "${pkgdir}"/usr/bin/nemo-terminal-prefs
     install -Dm644 src/org.nemo.extensions.nemo-terminal.gschema.xml \
         "${pkgdir}"/usr/share/glib-2.0/schemas/org.nemo.extensions.nemo-terminal.gschema.xml
     install -Dm644 pixmap/logo_120x120.png \


More information about the arch-commits mailing list