# Maintainer: Clayton Craft pkgname=py-spy pkgver=0.3.3 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=('e23101fcd70330874305022316695b9ca64928cf12735cd19ec2b44ce9a9d9a8d93fe9e9ac1c877977fa307116059b7de6fe7b0f37a5e6ffcc284c5d093f420f') 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" }