diff options
author | Dimitris Kiziridis | 2020-05-14 01:41:32 +0300 |
---|---|---|
committer | Dimitris Kiziridis | 2020-05-14 01:41:32 +0300 |
commit | 827384f8819112d3ce277676b2038719dc6fe382 (patch) | |
tree | 4481c225a0d70948686743fd7f2e7934dcc8eb1f | |
parent | 2d3e2dc0653ea7b034ccb6da00e82b1d88c3bb6d (diff) | |
download | aur-827384f8819112d3ce277676b2038719dc6fe382.tar.gz |
sanitize pkgbuild
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 7 insertions, 3 deletions
@@ -7,7 +7,8 @@ pkgbase = mimemagic license = MIT makedepends = dep makedepends = go-pie - source = https://github.com/zRedShift/mimemagic/archive/v1.1.0.tar.gz + depends = glibc + source = mimemagic-1.1.0.tar.gz::https://github.com/zRedShift/mimemagic/archive/v1.1.0.tar.gz sha256sums = 3f20e5a7e28080c3dd23721d40d9d419509f26e38c69f11b2c9838c8b41a1927 pkgname = mimemagic @@ -7,8 +7,9 @@ pkgdesc="Powerful and versatile MIME sniffing package using pre-compiled glob pa arch=('x86_64') url='https://github.com/zRedShift/mimemagic' license=('MIT') +depends=('glibc') makedepends=('dep' 'go-pie') -source=("${url}/archive/v${pkgver}.tar.gz") +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") sha256sums=('3f20e5a7e28080c3dd23721d40d9d419509f26e38c69f11b2c9838c8b41a1927') prepare() { @@ -16,7 +17,9 @@ prepare() { ln -rTsf ${pkgname}-${pkgver} gopath/src/github.com/${pkgname}/${pkgname} export GOPATH="$srcdir"/gopath cd gopath/src/github.com/${pkgname}/${pkgname} - dep init -v + if [[ ! -f Gopkg.toml ]]; then + dep init -v + fi dep ensure -v } |