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