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