# Maintainer: Clayton Craft pkgname=py-spy pkgver=0.3.0 pkgrel=1 pkgdesc="Sampling profiler for Python programs" arch=('x86_64') license=('GPL3') url="https://github.com/benfred/py-spy" makedepends=('rust' 'cargo' 'libunwind') source=("$pkgname-$pkgver.tar.gz::https://github.com/benfred/py-spy/archive/v$pkgver.tar.gz") sha512sums=('54098d158c74e66aed7f5f39da9cae21cbf984edcca1ef79e70e5f47293a67c0197274f28a9f66398bc0f05b5f238939b9cad8a0603f7792ed46148d59041270') build() { cd "${srcdir}/${pkgname}-${pkgver}" cargo build --release } package() { cd "${srcdir}/${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" }