blob: fa43100dc872966d609f93a5ae887835c6538754 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Maintainer: Clayton Craft <clayton at craftyguy dot net>
pkgname=py-spy
pkgver=0.2.1
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=('eb7ce7bce8facd504ca38bda6d3d1d92ef1b9f6b17dc85f17ea7c32cc09f2aea78d0f3a3f08bc08ff70ba98b77ee70db94613d0fe9555bff82f59101c0fc2016')
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"
}
|