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