commit c071d57a1a30eeeb4d51d6e7f8ced50970ffd948 Author: xhaa123 Date: Sun Nov 3 13:13:44 2024 +0800 python-pefile 2023.2.7-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..7eb3b56 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# 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 +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 +}