summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClayton Craft2018-11-17 19:08:57 -0800
committerClayton Craft2018-11-17 19:08:57 -0800
commitb87a8249a066f3b03a23de61bbea91013db76309 (patch)
tree9a2582549ec85f8d7c607857ee1dab567fbfc163
parent8efc1c0c3a22d874d2d059c3c77716ebe7c28f81 (diff)
downloadpackages-b87a8249a066f3b03a23de61bbea91013db76309.tar.gz
packages-b87a8249a066f3b03a23de61bbea91013db76309.tar.bz2
packages-b87a8249a066f3b03a23de61bbea91013db76309.zip
Properly quote srcdir and remove more unneeded lines
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
2 files changed, 4 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 96ebbf2..42c0b90 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,12 @@
1pkgbase = py-spy 1pkgbase = py-spy
2 pkgdesc = Sampling profiler for Python programs 2 pkgdesc = Sampling profiler for Python programs
3 pkgver = 0.1.8 3 pkgver = 0.1.8
4 pkgrel = 2 4 pkgrel = 3
5 url = https://github.com/benfred/py-spy 5 url = https://github.com/benfred/py-spy
6 arch = x86_64 6 arch = x86_64
7 license = GPL3 7 license = GPL3
8 makedepends = rust 8 makedepends = rust
9 makedepends = cargo 9 makedepends = cargo
10 provides = py-spy
11 conflicts = py-spy
12 source = py-spy-0.1.8.tar.gz::https://github.com/benfred/py-spy/archive/v0.1.8.tar.gz 10 source = py-spy-0.1.8.tar.gz::https://github.com/benfred/py-spy/archive/v0.1.8.tar.gz
13 sha512sums = 68831d1c066887f3473e9eef1a773c0f9e1eb9252f929b0884b1d04faede90a72d7e3eb949d14e2e75c12e2645bf6b57ea5f94d5514491f46594231ad68ad1d1 11 sha512sums = 68831d1c066887f3473e9eef1a773c0f9e1eb9252f929b0884b1d04faede90a72d7e3eb949d14e2e75c12e2645bf6b57ea5f94d5514491f46594231ad68ad1d1
14 12
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"