SHARE
TWEET

PKGBUILD

a guest Mar 5th, 2016 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Christian Rebischke <chris.rebischke[at]archlinux[dot]org>
  2. # Contributor: Sonic-Y3k <sonic.y3k@googlemail.com>
  3.  
  4. pkgbase=python2-pefile
  5. pkgname=('python-pefile' 'python2-pefile')
  6. pkgver=2016.3.4
  7. pkgrel=1
  8. pkgdesc="Python PE parsing module"
  9. arch=('any')
  10. url="https://github.com/erocarrera/pefile"
  11. license=('MIT')
  12. makedepends=('python' 'python2' 'python-future' 'python2-future')
  13. source=("python-pefile.tar.gz::https://github.com/erocarrera/pefile/releases/download/v${pkgver}/pefile-${pkgver}.tar.gz")
  14. sha256sums=('51d149b31d0eeb5c97c67ee6a05b529d9fab37557d59d82c1f489560dc0b66f7')
  15.  
  16. build() {
  17.   cd $srcdir
  18.   cp -r pefile-$pkgver pefile2-$pkgver
  19. }
  20.  
  21. check() {
  22.   cd $srcdir/pefile-$pkgver
  23.   python3 setup.py check
  24.  
  25.   cd $srcdir/pefile2-$pkgver
  26.   python2 setup.py check  
  27. }
  28.  
  29. package_python-pefile() {
  30.   depends=('python' 'python-six')
  31.   cd "$srcdir/pefile-$pkgver"
  32.   python3 setup.py install --root "${pkgdir}" --optimize=1
  33. }
  34.  
  35. package_python2-pefile() {
  36.   depends=('python2' 'python2-six')
  37.   cd "$srcdir/pefile2-$pkgver"
  38.   python2 setup.py install --root "${pkgdir}" --optimize=1
  39. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top