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

Felix Yan fyan at archlinux.org
Sat Sep 19 16:45:42 UTC 2015


    Date: Saturday, September 19, 2015 @ 18:45:42
  Author: fyan
Revision: 140992

archrelease: copy trunk to community-staging-any

Added:
  python-pyinotify/repos/community-staging-any/
  python-pyinotify/repos/community-staging-any/PKGBUILD
    (from rev 140991, python-pyinotify/trunk/PKGBUILD)

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

Copied: python-pyinotify/repos/community-staging-any/PKGBUILD (from rev 140991, python-pyinotify/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 16:45:42 UTC (rev 140992)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+# Contributor: Evangelos Foutras <foutrelis at gmail.com>
+
+pkgname=('python-pyinotify' 'python2-pyinotify')
+pkgver=0.9.6
+pkgrel=2
+pkgdesc='Python module used for monitoring filesystems events on Linux platforms with inotify.'
+arch=('any')
+url="http://github.com/seb-m/pyinotify"
+license=('custom:MIT')
+makedepends=('python' 'python2')
+source=("http://seb.dbzteam.org/pub/pyinotify/releases/pyinotify-${pkgver}.tar.gz")
+md5sums=('8e580fa1ff3971f94a6f81672b76c406')
+
+build() {
+  cp -r $srcdir/pyinotify-$pkgver  $srcdir/pyinotify2-$pkgver
+
+  cd $srcdir/pyinotify2-$pkgver
+
+  python2 setup.py build
+
+  cd $srcdir/pyinotify-$pkgver
+
+  python3 setup.py build
+}
+
+package_python-pyinotify() {
+  depends=('python')
+
+  cd $srcdir/pyinotify-$pkgver
+
+  python3 setup.py install --root=${pkgdir} -O1
+
+  install -d ${pkgdir}/usr/share/licenses/python-pyinotify
+  install -m644 COPYING \
+    ${pkgdir}/usr/share/licenses/python-pyinotify
+}
+
+package_python2-pyinotify() {
+  depends=('python2')
+  replaces=('pyinotify')
+
+  cd $srcdir/pyinotify2-$pkgver
+
+  sed \
+    -e 's_#!/usr/bin/env python_&2_' \
+  -i python2/pyinotify.py
+
+  python2 setup.py install --root=${pkgdir} -O1
+
+  install -d ${pkgdir}/usr/share/licenses/python2-pyinotify
+  install -m644 COPYING \
+    ${pkgdir}/usr/share/licenses/python2-pyinotify
+}



More information about the arch-commits mailing list