python-pefile/PKGBUILD
2024-11-03 13:13:44 +08:00

30 lines
947 B
Bash

# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=python-pefile
pkgver=2023.2.7
pkgrel=1
pkgdesc="Python PE parsing module"
arch=('x86_64')
url="https://github.com/erocarrera/pefile"
license=('MIT')
depends=('python')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
source=(https://github.com/erocarrera/pefile/releases/download/v${pkgver}/${pkgname#*-}-${pkgver}.tar.gz)
sha256sums=(11cd7ed7082d5256e9741e8b98c654f061723fafb5b2719c01a0b4cc6f89e09d)
build() {
cd ${pkgname#*-}-${pkgver}
python3 -m build --wheel --no-isolation
}
package() {
cd ${pkgname#*-}-${pkgver}
python3 -m installer --destdir=${pkgdir} dist/*.whl
}