diff options
author | Dimitris Kiziridis | 2020-05-11 00:51:45 +0300 |
---|---|---|
committer | Dimitris Kiziridis | 2020-05-11 00:51:45 +0300 |
commit | 96baecb0b71f4e928565180d65ea13faa2870c81 (patch) | |
tree | 200338c191555a75a19edd67a2b789585fce034f | |
parent | bc0af0367a5ee5ef3c5caa6a42610341f441b80a (diff) | |
download | aur-96baecb0b71f4e928565180d65ea13faa2870c81.tar.gz |
sanitize pkgbuild
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 8 insertions, 4 deletions
@@ -8,9 +8,10 @@ pkgbase = copy-pasta-git makedepends = git makedepends = dep makedepends = go-pie + depends = glibc provides = copy-pasta source = git+https://github.com/jutkko/copy-pasta - md5sums = SKIP + sha256sums = SKIP pkgname = copy-pasta-git @@ -8,9 +8,10 @@ arch=('x86_64') url='https://github.com/jutkko/copy-pasta' license=('MIT') provides=("${pkgname%-git}") +depends=('glibc') makedepends=('git' 'dep' 'go-pie') source=("git+${url}") -md5sums=('SKIP') +sha256sums=('SKIP') pkgver() { cd "${srcdir}/${pkgname%-git}" @@ -22,7 +23,9 @@ prepare() { ln -rTsf ${pkgname%-git} gopath/src/github.com/${pkgname%-git}/${pkgname%-git} export GOPATH="$srcdir"/gopath cd gopath/src/github.com/${pkgname%-git}/${pkgname%-git} - dep init -v + if [[ ! -f Gopkg.toml ]]; then + dep init -v + fi dep ensure -v } @@ -34,5 +37,5 @@ build() { package() { install -Dm755 "${srcdir}/gopath/bin/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}" - install -Dm644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE" + install -Dm644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }
\ No newline at end of file |