From b87a8249a066f3b03a23de61bbea91013db76309 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Sat, 17 Nov 2018 19:08:57 -0800 Subject: Properly quote srcdir and remove more unneeded lines --- .SRCINFO | 4 +--- PKGBUILD | 8 +++----- 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 @@ pkgbase = py-spy pkgdesc = Sampling profiler for Python programs pkgver = 0.1.8 - pkgrel = 2 + pkgrel = 3 url = https://github.com/benfred/py-spy arch = x86_64 license = GPL3 makedepends = rust makedepends = cargo - provides = py-spy - conflicts = py-spy source = py-spy-0.1.8.tar.gz::https://github.com/benfred/py-spy/archive/v0.1.8.tar.gz sha512sums = 68831d1c066887f3473e9eef1a773c0f9e1eb9252f929b0884b1d04faede90a72d7e3eb949d14e2e75c12e2645bf6b57ea5f94d5514491f46594231ad68ad1d1 diff --git a/PKGBUILD b/PKGBUILD index 3c3f650..54f48c6 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,24 +1,22 @@ # Maintainer: Clayton Craft pkgname=py-spy pkgver=0.1.8 -pkgrel=2 +pkgrel=3 pkgdesc="Sampling profiler for Python programs" arch=('x86_64') license=('GPL3') url="https://github.com/benfred/py-spy" makedepends=('rust' 'cargo') -provides=('py-spy') -conflicts=('py-spy') source=("$pkgname-$pkgver.tar.gz::https://github.com/benfred/py-spy/archive/v$pkgver.tar.gz") sha512sums=('68831d1c066887f3473e9eef1a773c0f9e1eb9252f929b0884b1d04faede90a72d7e3eb949d14e2e75c12e2645bf6b57ea5f94d5514491f46594231ad68ad1d1') build() { - cd ${srcdir}/${pkgname}-${pkgver} + cd "${srcdir}/${pkgname}-${pkgver}" cargo build --release } package() { - cd ${srcdir}/${pkgname}-${pkgver} + cd "${srcdir}/${pkgname}-${pkgver}" install -Dm755 "target/release/py-spy" "${pkgdir}/usr/bin/py-spy" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" -- cgit v1.2.3-70-g09d2