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