summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorClayton Craft2018-11-17 19:08:57 -0800
committerClayton Craft2018-11-17 19:08:57 -0800
commitb87a8249a066f3b03a23de61bbea91013db76309 (patch)
tree9a2582549ec85f8d7c607857ee1dab567fbfc163 /PKGBUILD
parent8efc1c0c3a22d874d2d059c3c77716ebe7c28f81 (diff)
downloadpackages-b87a8249a066f3b03a23de61bbea91013db76309.tar.gz
packages-b87a8249a066f3b03a23de61bbea91013db76309.tar.bz2
packages-b87a8249a066f3b03a23de61bbea91013db76309.zip
Properly quote srcdir and remove more unneeded lines
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 3 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3c3f650..54f48c6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,22 @@
1# Maintainer: Clayton Craft <clayton at craftyguy dot net> 1# Maintainer: Clayton Craft <clayton at craftyguy dot net>
2pkgname=py-spy 2pkgname=py-spy
3pkgver=0.1.8 3pkgver=0.1.8
4pkgrel=2 4pkgrel=3
5pkgdesc="Sampling profiler for Python programs" 5pkgdesc="Sampling profiler for Python programs"
6arch=('x86_64') 6arch=('x86_64')
7license=('GPL3') 7license=('GPL3')
8url="https://github.com/benfred/py-spy" 8url="https://github.com/benfred/py-spy"
9makedepends=('rust' 'cargo') 9makedepends=('rust' 'cargo')
10provides=('py-spy')
11conflicts=('py-spy')
12source=("$pkgname-$pkgver.tar.gz::https://github.com/benfred/py-spy/archive/v$pkgver.tar.gz") 10source=("$pkgname-$pkgver.tar.gz::https://github.com/benfred/py-spy/archive/v$pkgver.tar.gz")
13sha512sums=('68831d1c066887f3473e9eef1a773c0f9e1eb9252f929b0884b1d04faede90a72d7e3eb949d14e2e75c12e2645bf6b57ea5f94d5514491f46594231ad68ad1d1') 11sha512sums=('68831d1c066887f3473e9eef1a773c0f9e1eb9252f929b0884b1d04faede90a72d7e3eb949d14e2e75c12e2645bf6b57ea5f94d5514491f46594231ad68ad1d1')
14 12
15build() { 13build() {
16 cd ${srcdir}/${pkgname}-${pkgver} 14 cd "${srcdir}/${pkgname}-${pkgver}"
17 cargo build --release 15 cargo build --release
18} 16}
19 17
20package() { 18package() {
21 cd ${srcdir}/${pkgname}-${pkgver} 19 cd "${srcdir}/${pkgname}-${pkgver}"
22 install -Dm755 "target/release/py-spy" "${pkgdir}/usr/bin/py-spy" 20 install -Dm755 "target/release/py-spy" "${pkgdir}/usr/bin/py-spy"
23 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" 21 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
24 install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" 22 install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"