diff options
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 12 insertions, 7 deletions
@@ -1,13 +1,14 @@ pkgbase = go-yq pkgdesc = portable command-line YAML processor pkgver = 3.4.1 - pkgrel = 1 + pkgrel = 2 url = https://github.com/mikefarah/yq arch = x86_64 license = MIT makedepends = go + depends = glibc conflicts = yq - source = https://github.com/mikefarah/yq/archive/3.4.1.tar.gz + source = https://github.com/mikefarah/yq/archive/3.4.1/yq-3.4.1.tar.gz sha256sums = 73259f808d589d11ea7a18e4cd38a2e98b518a6c2c178d1ec57d9c5942277cb1 pkgname = go-yq @@ -2,18 +2,20 @@ pkgname=go-yq pkgver=3.4.1 -pkgrel=1 -pkgdesc='portable command-line YAML processor' +pkgrel=2 +pkgdesc="portable command-line YAML processor" arch=(x86_64) url=https://github.com/mikefarah/yq license=(MIT) +depends=(glibc) makedepends=(go) conflicts=(yq) -source=(https://github.com/mikefarah/yq/archive/${pkgver}.tar.gz) +source=(https://github.com/mikefarah/yq/archive/${pkgver}/yq-${pkgver}.tar.gz) sha256sums=('73259f808d589d11ea7a18e4cd38a2e98b518a6c2c178d1ec57d9c5942277cb1') prepare() { cd yq-$pkgver + export GOPATH="$srcdir/gopath" go mod vendor } @@ -24,6 +26,7 @@ check() { build() { cd yq-$pkgver + export GOPATH="$srcdir/gopath" export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" @@ -34,6 +37,7 @@ build() { package() { cd yq-$pkgver - install -Dm755 yq "$pkgdir/usr/bin/yq" - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm0755 yq "$pkgdir/usr/bin/yq" + install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm0644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" } |