diff options
Diffstat (limited to 'py-spy/PKGBUILD')
-rw-r--r-- | py-spy/PKGBUILD | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/py-spy/PKGBUILD b/py-spy/PKGBUILD new file mode 100644 index 0000000..3534b8e --- /dev/null +++ b/py-spy/PKGBUILD | |||
@@ -0,0 +1,24 @@ | |||
1 | # Maintainer: lilydjwg <lilydjwg@gmail.com> | ||
2 | # Contributor: Clayton Craft <clayton@craftyguy.net> | ||
3 | pkgname=py-spy | ||
4 | pkgver=0.3.14 | ||
5 | pkgrel=1 | ||
6 | pkgdesc="Sampling profiler for Python programs" | ||
7 | arch=('x86_64') | ||
8 | license=('GPL3') | ||
9 | url="https://github.com/benfred/py-spy" | ||
10 | makedepends=('rust' 'cargo' 'libunwind') | ||
11 | source=("https://github.com/benfred/py-spy/archive/refs/tags/v${pkgver}.tar.gz") | ||
12 | sha512sums=('f079b002248a033eac3b93723fd267e6cbdb415ac3172ace0d14eb9cd87a1e4adf471eeec641f9644abe8a4fab43b48db7440b4b1242ea18e02bcc574104d303') | ||
13 | |||
14 | build() { | ||
15 | cd "${srcdir}/${pkgname}-${pkgver}" | ||
16 | cargo build --release | ||
17 | } | ||
18 | |||
19 | package() { | ||
20 | cd "${srcdir}/${pkgname}-${pkgver}" | ||
21 | install -Dm755 "target/release/py-spy" "${pkgdir}/usr/bin/py-spy" | ||
22 | install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | ||
23 | install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" | ||
24 | } | ||