updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / python2-pefile / PKGBUILD
blob67b2fa02f9a381194294a0ba0122e02cc833faae
1 # Contributor: Wes Brown <wesbrown18@gmail.com>
2 pkgname=python2-pefile
3 pkgver=1.2.10_114
4 pkgrel=3
5 pkgdesc="This is a Python library for PE file support and investigation."
6 arch=('any')
7 url="http://code.google.com/p/pefile/"
8 license=('MIT')
9 depends=('python2')
10 makedepends=('python2-distribute')
11 source=("http://pefile.googlecode.com/files/pefile-${pkgver//_/-}.tar.gz"
12         "https://reverse-engineering-scripts.googlecode.com/files/UserDB.TXT"
13         "http://research.pandasecurity.com/blogs/images/userdb.txt" )
14 md5sums=("c41988b09a9d68610387074f74d8523d" 
15          "cabeb4d94f3588c46cce6d793e263c44"
16          "ff90392a3682a5e3fe5aa2cdde5c759e" )
18 build() {
19   cd "${srcdir}/pefile-${pkgver//_/-}"
20   python2 setup.py build
23 package() {
24   cd "${srcdir}/pefile-${pkgver//_/-}"
25   python2 setup.py install -O1 --skip-build --root="${pkgdir}" --prefix="/usr"
26   install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
27   cd ../..
28   cat userdb.txt UserDB.TXT > UserDB-concat.txt
29   install -Dm644 UserDB-concat.txt ${pkgdir}/usr/share/pefile/UserDB.TXT
32 # vim:set ts=2 sw=2 et: