Skip to content

@fleger /python2-pefile.patch
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Patch for python2-pefile from the AUR
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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.