public
Created

Patch for python2-pefile from the AUR

  • Download Gist
python2-pefile.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
diff -Naur a/python2-pefile/PKGBUILD b/python2-pefile/PKGBUILD
--- a/python2-pefile/PKGBUILD 2011-11-23 04:17:37.000000000 +0100
+++ b/python2-pefile/PKGBUILD 2011-11-29 09:24:34.834723815 +0100
@@ -1,22 +1,25 @@
# Contributor: Wes Brown <wesbrown18@gmail.com>
pkgname=python2-pefile
-pkgver=1.2.10
-subver=114
-pkgrel=0
+pkgver=1.2.10_114
+pkgrel=1
pkgdesc="This is a Python library for PE file support and investigation."
-arch=('i686' 'x86_64')
+arch=('any')
url="http://code.google.com/p/pefile/"
license=('MIT')
depends=('python2')
-makedepends=('python2-setuptools')
-source=("http://pefile.googlecode.com/files/pefile-${pkgver}-${subver}.tar.gz" "http://reverse-engineering-scripts.googlecode.com/files/UserDB.TXT")
-md5sums=("c41988b09a9d68610387074f74d8523d" "cabeb4d94f3588c46cce6d793e263c44")
+makedepends=('python2-distribute')
+source=("http://pefile.googlecode.com/files/pefile-${pkgver//_/-}.tar.gz")
+md5sums=("c41988b09a9d68610387074f74d8523d")
+
build() {
- cd "$srcdir/pefile-${pkgver}-${subver}"
- python2 setup.py build install --root="${pkgdir}" || return 1
- mkdir -p ${pkgdir}/usr/share/pefile
- echo `pwd`
- cp ../../UserDB.TXT ${pkgdir}/usr/share/pefile/UserDB.TXT
+ cd "${srcdir}/pefile-${pkgver//_/-}"
+ python2 setup.py build
+}
+
+package() {
+ cd "${srcdir}/pefile-${pkgver//_/-}"
+ python2 setup.py install -O1 --skip-build --root="${pkgdir}" --prefix="/usr"
+ install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
# vim:set ts=2 sw=2 et:

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.