[arch-commits] Commit in nautilus-python/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Jul 23 15:40:15 UTC 2018


    Date: Monday, July 23, 2018 @ 15:40:15
  Author: felixonmars
Revision: 363049

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: nautilus-python/repos/community-staging-x86_64/PKGBUILD (from rev 363047, nautilus-python/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-07-23 15:40:15 UTC (rev 363049)
@@ -0,0 +1,53 @@
+# $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.2
+pkgrel=2
+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')
+makedepends=('gtk-doc')
+source=(https://download.gnome.org/sources/$pkgbase/${pkgver%.*}/$pkgbase-$pkgver.tar.xz)
+sha256sums=('90cda3fd613ed012214e47c2dc6f814db4e204a5af38e840479819ab9c59f112')
+
+build() {
+  # Python 3 version
+  [ -d gtk3 ] || cp -r $pkgbase-$pkgver python3
+  cd python3
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-gtk-doc \
+              PYTHON=python3
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+
+  cd "$srcdir"
+  # Python 2 version
+  [ -d gtk2 ] || cp -r $pkgbase-$pkgver python2
+  cd python2
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-gtk-doc \
+              PYTHON=python2
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  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