Date: Thursday, September 4, 2014 @ 19:20:29 Author: andyrtr Revision: 220946
upgpkg: getmail 4.46.0-2 fix bad mtime Modified: getmail/trunk/PKGBUILD ----------+ PKGBUILD | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-09-04 17:05:21 UTC (rev 220945) +++ PKGBUILD 2014-09-04 17:20:29 UTC (rev 220946) @@ -4,7 +4,7 @@ pkgname=getmail pkgver=4.46.0 -pkgrel=1 +pkgrel=2 pkgdesc="A POP3 mail retriever with reliable Maildir and command delivery." arch=(any) url="http://pyropus.ca/software/getmail" @@ -14,15 +14,21 @@ source=(http://pyropus.ca/software/getmail/old-versions/$pkgname-$pkgver.tar.gz) md5sums=('aa094ebe558f47246c8af2ca8e1d12f9') +prepare() { + cd ${pkgname}-${pkgver} + # fix broken shebang calls + sed -i -e "s|#![ ]*/usr/bin/env python|#!/usr/bin/env python2|" getmailcore/__init__.py + sed -i -e "s|#![ ]*/usr/bin/env python2.3|#!/usr/bin/env python2|" $(find . -name '*.py') + # recheck + head -1 $(find . -name '*.py') +} + build() { - cd ${srcdir}/${pkgname}-${pkgver} + cd ${pkgname}-${pkgver} python2 setup.py build } package() { - cd ${srcdir}/${pkgname}-${pkgver} + cd ${pkgname}-${pkgver} python2 setup.py install --root=${pkgdir} - # fix some broken shebang calls - sed -i -e "s|#![ ]*/usr/bin/env python|#!/usr/bin/env python2|" $pkgdir/usr/lib/python2.7/site-packages/getmailcore/__init__.py - sed -i -e "s|#![ ]*/usr/bin/env python2.3|#!/usr/bin/env python2|" $(find $pkgdir -name '*.py') }
