# Maintainer: Yigit Sever # Contributor: lilydjwg # Contributor: Clayton Craft pkgname=py-spy pkgver=0.4.0 pkgrel=1 pkgdesc="Sampling profiler for Python programs" arch=('x86_64') license=('MIT') url="https://github.com/benfred/py-spy" makedepends=('rust' 'cargo' 'libunwind') source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") sha256sums=('13a5c4b949947425670eedac05b6dd27edbc736b75f1587899efca1a7ef79ac3') build() { cd "${pkgname}-${pkgver}" cargo build --release } package() { cd "${pkgname}-${pkgver}" install -Dm755 "target/release/py-spy" "${pkgdir}/usr/bin/py-spy" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" }