[arch-commits] Commit in (4 files)
Balló György
bgyorgy at archlinux.org
Tue Jan 9 21:48:30 UTC 2018
Date: Tuesday, January 9, 2018 @ 21:48:29
Author: bgyorgy
Revision: 280777
Rename python2-nautilus base package to nautilus-python
Added:
nautilus-python/
nautilus-python/trunk/
nautilus-python/trunk/PKGBUILD
Deleted:
python2-nautilus/
----------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Added: nautilus-python/trunk/PKGBUILD
===================================================================
--- nautilus-python/trunk/PKGBUILD (rev 0)
+++ nautilus-python/trunk/PKGBUILD 2018-01-09 21:48:29 UTC (rev 280777)
@@ -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
+}
Property changes on: nautilus-python/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list