diff options
-rw-r--r-- | py-spy/.SRCINFO | 6 | ||||
-rw-r--r-- | py-spy/PKGBUILD | 17 |
2 files changed, 16 insertions, 7 deletions
diff --git a/py-spy/.SRCINFO b/py-spy/.SRCINFO index 0054d33..56e5b56 100644 --- a/py-spy/.SRCINFO +++ b/py-spy/.SRCINFO | |||
@@ -1,6 +1,6 @@ | |||
1 | pkgbase = py-spy | 1 | pkgbase = py-spy |
2 | pkgdesc = Sampling profiler for Python programs | 2 | pkgdesc = Sampling profiler for Python programs |
3 | pkgver = 0.4.0 | 3 | pkgver = 0.4.1 |
4 | pkgrel = 1 | 4 | pkgrel = 1 |
5 | url = https://github.com/benfred/py-spy | 5 | url = https://github.com/benfred/py-spy |
6 | arch = x86_64 | 6 | arch = x86_64 |
@@ -8,7 +8,7 @@ pkgbase = py-spy | |||
8 | makedepends = rust | 8 | makedepends = rust |
9 | makedepends = cargo | 9 | makedepends = cargo |
10 | makedepends = libunwind | 10 | makedepends = libunwind |
11 | source = py-spy-0.4.0.tar.gz::https://github.com/benfred/py-spy/archive/refs/tags/v0.4.0.tar.gz | 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 = 13a5c4b949947425670eedac05b6dd27edbc736b75f1587899efca1a7ef79ac3 | 12 | sha256sums = 6abc303d4e2db30d472997838f83d547a990df7747e1d327249a757863ee9225 |
13 | 13 | ||
14 | pkgname = py-spy | 14 | pkgname = py-spy |
diff --git a/py-spy/PKGBUILD b/py-spy/PKGBUILD index 23cb8cf..c2c83fa 100644 --- a/py-spy/PKGBUILD +++ b/py-spy/PKGBUILD | |||
@@ -1,8 +1,9 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | 1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> |
2 | # Contributor: lilydjwg <lilydjwg@gmail.com> | 2 | # Contributor: lilydjwg <lilydjwg@gmail.com> |
3 | # Contributor: Clayton Craft <clayton@craftyguy.net> | 3 | # Contributor: Clayton Craft <clayton@craftyguy.net> |
4 | |||
4 | pkgname=py-spy | 5 | pkgname=py-spy |
5 | pkgver=0.4.0 | 6 | pkgver=0.4.1 |
6 | pkgrel=1 | 7 | pkgrel=1 |
7 | pkgdesc="Sampling profiler for Python programs" | 8 | pkgdesc="Sampling profiler for Python programs" |
8 | arch=('x86_64') | 9 | arch=('x86_64') |
@@ -10,16 +11,24 @@ license=('MIT') | |||
10 | url="https://github.com/benfred/py-spy" | 11 | url="https://github.com/benfred/py-spy" |
11 | makedepends=('rust' 'cargo' 'libunwind') | 12 | makedepends=('rust' 'cargo' 'libunwind') |
12 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") | 13 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") |
13 | sha256sums=('13a5c4b949947425670eedac05b6dd27edbc736b75f1587899efca1a7ef79ac3') | 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 | } | ||
14 | 21 | ||
15 | build() { | 22 | build() { |
16 | cd "${pkgname}-${pkgver}" | 23 | cd "${pkgname}-${pkgver}" |
17 | cargo build --release | 24 | export RUSTUP_TOOLCHAIN=stable |
25 | export CARGO_TARGET_DIR=target | ||
26 | cargo build --frozen --release --all-features | ||
18 | } | 27 | } |
19 | 28 | ||
20 | package() { | 29 | package() { |
21 | cd "${pkgname}-${pkgver}" | 30 | cd "${pkgname}-${pkgver}" |
22 | install -Dm755 "target/release/py-spy" "${pkgdir}/usr/bin/py-spy" | 31 | install -Dm0755 "target/release/py-spy" "${pkgdir}/usr/bin/py-spy" |
23 | install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | 32 | install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" |
24 | install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" | 33 | install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" |
25 | } | 34 | } |