summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 718cd06790c3099ebc995de2521a934a2fce0e73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: coloursofnoise <coloursofthenoise at google mail>
pkgname=python-dnfile
_name=${pkgname#python-}
pkgver=0.13.0
pkgrel=1
pkgdesc="Python .NET executable parsing module"
url="https://github.com/malwarefrank/dnfile"
arch=('any')
license=('MIT')
depends=('python' 'python-pefile')
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("${_name}-${pkgver}.tar.gz::${url}/archive/v${pkgver}/${_name}-${pkgver}.tar.gz")
sha256sums=('48b9b2ed3b295ab3d9f93639b2418915cee7970cb57ef56f858e3610e1b45ea8')

build() {
    cd "${_name}-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${_name}-${pkgver}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}