[arch-commits] Commit in nautilus-python (3 files)

Balló György bgyorgy at archlinux.org
Tue Jan 9 21:48:49 UTC 2018


    Date: Tuesday, January 9, 2018 @ 21:48:48
  Author: bgyorgy
Revision: 280778

archrelease: copy trunk to community-x86_64

Added:
  nautilus-python/repos/
  nautilus-python/repos/community-x86_64/
  nautilus-python/repos/community-x86_64/PKGBUILD
    (from rev 280777, nautilus-python/trunk/PKGBUILD)

----------+
 PKGBUILD |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

Copied: nautilus-python/repos/community-x86_64/PKGBUILD (from rev 280777, nautilus-python/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD	                        (rev 0)
+++ repos/community-x86_64/PKGBUILD	2018-01-09 21:48:48 UTC (rev 280778)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Giorgio Gilestro <giorgio at gilest.ro>
+
+pkgbase=nautilus-python
+pkgname=('python-nautilus' 'python2-nautilus')
+pkgver=1.2.1
+pkgrel=1
+pkgdesc="Python bindings for the Nautilus Extension API"
+arch=('x86_64')
+url="https://wiki.gnome.org/Projects/NautilusPython"
+license=('GPL')
+depends=('nautilus' 'python-gobject' 'python2-gobject')
+source=(https://download.gnome.org/sources/$pkgbase/${pkgver%.*}/$pkgbase-$pkgver.tar.xz)
+sha256sums=('36f98a8cc191b4ffcbcd7835eb80f99f39095b221c0ab65b4c84a859f9a9b10f')
+
+prepare() {
+  cd $pkgbase-$pkgver
+  autoreconf -fi
+}
+
+build() {
+  # Python 3 version
+  [ -d gtk3 ] || cp -r $pkgbase-$pkgver python3
+  cd python3
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+              PYTHON=python3
+  make
+
+  cd "$srcdir"
+  # Python 2 version
+  [ -d gtk2 ] || cp -r $pkgbase-$pkgver python2
+  cd python2
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+              PYTHON=python2
+  make
+}
+
+package_python-nautilus() {
+  pkgdesc="Python 3 bindings for the Nautilus Extension API"
+  depends=('nautilus' 'python-gobject')
+  conflicts=('python2-nautilus')
+
+  cd python3
+  make DESTDIR="$pkgdir" install
+}
+
+package_python2-nautilus() {
+  pkgdesc="Python 2 bindings for the Nautilus Extension API"
+  depends=('nautilus' 'python2-gobject')
+  conflicts=('python-nautilus')
+
+  cd python2
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list