* add python-pefile

This commit is contained in:
Alexander Baldeck 2024-04-05 11:18:10 +02:00
parent fee343642f
commit b8d15a2e84
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,17 @@
pkgbase = python-pefile
pkgdesc = Python PE parsing module
pkgver = 2023.2.7
pkgrel = 2
url = https://github.com/erocarrera/pefile
arch = any
license = MIT
makedepends = python-setuptools
makedepends = python-build
makedepends = python-installer
makedepends = python-wheel
depends = python
source = https://github.com/erocarrera/pefile/archive/v2023.2.7/python-pefile-2023.2.7.tar.gz
sha512sums = 829f5480a9a0d801d204a186556cf2941e303df6e7d5ea01522f5fe9a5075141431f549ebd18103818580922ff05b563c9f6e756eae683260fdd9d5af72c81e4
b2sums = c4fc4c18aa3517691dc09b91b7477d0a1b1ed0be2f72606697d2840b12d040aa010825ad992e032d258971398677899d44f845bf651c38b8f389cdd55a9aa786
pkgname = python-pefile

View File

@ -0,0 +1,31 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer: Christian Rebischke <chris.rebischke[at]archlinux[dot]org>
# Contributor: Sonic-Y3k <sonic.y3k@googlemail.com>
pkgname=python-pefile
pkgver=2023.2.7
pkgrel=2
pkgdesc='Python PE parsing module'
url='https://github.com/erocarrera/pefile'
arch=('any')
license=('MIT')
depends=('python')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
source=(https://github.com/erocarrera/pefile/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('829f5480a9a0d801d204a186556cf2941e303df6e7d5ea01522f5fe9a5075141431f549ebd18103818580922ff05b563c9f6e756eae683260fdd9d5af72c81e4')
b2sums=('c4fc4c18aa3517691dc09b91b7477d0a1b1ed0be2f72606697d2840b12d040aa010825ad992e032d258971398677899d44f845bf651c38b8f389cdd55a9aa786')
build() {
cd pefile-${pkgver}
python -m build --wheel --no-isolation
}
package_python-pefile() {
cd pefile-${pkgver}
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm 644 README* -t "${pkgdir}/usr/share/doc/${pkgname}"
}
# vim: ts=2 sw=2 et: