diff options
Diffstat (limited to 'py-spy')
-rw-r--r-- | py-spy/.SRCINFO | 14 | ||||
-rw-r--r-- | py-spy/.gitignore | 3 | ||||
-rw-r--r-- | py-spy/PKGBUILD | 34 |
3 files changed, 51 insertions, 0 deletions
diff --git a/py-spy/.SRCINFO b/py-spy/.SRCINFO new file mode 100644 index 0000000..56e5b56 --- /dev/null +++ b/py-spy/.SRCINFO | |||
@@ -0,0 +1,14 @@ | |||
1 | pkgbase = py-spy | ||
2 | pkgdesc = Sampling profiler for Python programs | ||
3 | pkgver = 0.4.1 | ||
4 | pkgrel = 1 | ||
5 | url = https://github.com/benfred/py-spy | ||
6 | arch = x86_64 | ||
7 | license = MIT | ||
8 | makedepends = rust | ||
9 | makedepends = cargo | ||
10 | makedepends = libunwind | ||
11 | source = py-spy-0.4.1.tar.gz::https://github.com/benfred/py-spy/archive/refs/tags/v0.4.1.tar.gz | ||
12 | sha256sums = 6abc303d4e2db30d472997838f83d547a990df7747e1d327249a757863ee9225 | ||
13 | |||
14 | pkgname = py-spy | ||
diff --git a/py-spy/.gitignore b/py-spy/.gitignore new file mode 100644 index 0000000..f9e46d0 --- /dev/null +++ b/py-spy/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | *.tar.* | ||
2 | /src | ||
3 | /pkg | ||
diff --git a/py-spy/PKGBUILD b/py-spy/PKGBUILD new file mode 100644 index 0000000..c2c83fa --- /dev/null +++ b/py-spy/PKGBUILD | |||
@@ -0,0 +1,34 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
2 | # Contributor: lilydjwg <lilydjwg@gmail.com> | ||
3 | # Contributor: Clayton Craft <clayton@craftyguy.net> | ||
4 | |||
5 | pkgname=py-spy | ||
6 | pkgver=0.4.1 | ||
7 | pkgrel=1 | ||
8 | pkgdesc="Sampling profiler for Python programs" | ||
9 | arch=('x86_64') | ||
10 | license=('MIT') | ||
11 | url="https://github.com/benfred/py-spy" | ||
12 | makedepends=('rust' 'cargo' 'libunwind') | ||
13 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") | ||
14 | sha256sums=('6abc303d4e2db30d472997838f83d547a990df7747e1d327249a757863ee9225') | ||
15 | |||
16 | prepare() { | ||
17 | cd "${pkgname}-${pkgver}" | ||
18 | export RUSTUP_TOOLCHAIN=stable | ||
19 | cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" | ||
20 | } | ||
21 | |||
22 | build() { | ||
23 | cd "${pkgname}-${pkgver}" | ||
24 | export RUSTUP_TOOLCHAIN=stable | ||
25 | export CARGO_TARGET_DIR=target | ||
26 | cargo build --frozen --release --all-features | ||
27 | } | ||
28 | |||
29 | package() { | ||
30 | cd "${pkgname}-${pkgver}" | ||
31 | install -Dm0755 "target/release/py-spy" "${pkgdir}/usr/bin/py-spy" | ||
32 | install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | ||
33 | install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" | ||
34 | } | ||