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