Advertisement
Guest User

python2-uncompyle2-git

a guest
Dec 1st, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=python2-uncompyle2-git
  2. pkgver=20131201
  3. pkgrel=1
  4. pkgdesc="A Python 2.5, 2.6, 2.7 byte-code decompiler, written in Python 2.7"
  5. url="https://github.com/Mysterie/uncompyle2"
  6. arch=('any')
  7. depends=('python2')
  8. makedepends=('git')
  9. conflicts=('python2-uncompyle')
  10. license=('GPL3')
  11. source=('git+https://github.com/Mysterie/uncompyle2.git')
  12. md5sums=('SKIP')
  13.  
  14. pkgver() {
  15. cd "$srcdir/uncompyle2"
  16. # Use the tag of the last commit
  17. git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
  18. }
  19.  
  20. build() {
  21. cd "$srcdir/uncompyle2"
  22. python2 setup.py build
  23. }
  24.  
  25. package() {
  26. cd "$srcdir/uncompyle2"
  27. python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement