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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Wed Aug 27 15:41:38 UTC 2014


    Date: Wednesday, August 27, 2014 @ 17:41:38
  Author: bpiotrowski
Revision: 117967

upgpkg: ansible 1.7.1-2

fix bad mtime of pyc/pyo files

Modified:
  ansible/trunk/PKGBUILD

----------+
 PKGBUILD |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-08-27 13:39:15 UTC (rev 117966)
+++ PKGBUILD	2014-08-27 15:41:38 UTC (rev 117967)
@@ -7,7 +7,7 @@
 
 pkgname=ansible
 pkgver=1.7.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Radically simple IT automation platform'
 arch=('any')
 url='http://www.ansible.com'
@@ -21,6 +21,10 @@
 source=(http://releases.ansible.com/ansible/$pkgname-$pkgver.tar.gz)
 sha256sums=('d1dedd0808a138a8a0945197d38ba56123503e2440f44fe3d67c0b4bbf719572')
 
+prepare() {
+  find $pkgname-$pkgver -type f -name \*.py -exec sed -i '1s:python$:&2:' {} +
+}
+
 build() {
   cd $pkgname-$pkgver
   python2 setup.py build
@@ -29,7 +33,6 @@
 package() {
   cd $pkgname-$pkgver
   python2 setup.py install -O1 --root="$pkgdir"
-  find "$pkgdir/usr/lib" -type f -name \*.py -exec sed -i '1s:python$:&2:' {} +
 
   install -d "$pkgdir/usr/share/ansible"
   cp -dpr --no-preserve=ownership ./library/* "$pkgdir/usr/share/ansible/"




More information about the arch-commits mailing list