summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d4f35c47e1fab0653622fc8bf4543082e57ed1e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: Firegem <mrfiregem [at] protonmail [dot] ch>
pkgname=dasel-bin
_pkgname=${pkgname%-bin}
pkgver=2.1.0
pkgrel=1
pkgdesc="Query and update data structures from the command line."
arch=('x86_64')
url='https://github.com/TomWright/dasel'
license=('MIT')
source=(
  "https://github.com/TomWright/${_pkgname}/releases/download/v${pkgver}/${_pkgname}_linux_amd64.gz"
  "https://github.com/TomWright/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
)
sha256sums=('bfd49d6d83bd7f49d4343b9afd6c4e494d45a87c4cebc3c67952b167f9d9aa98'
            '597d5ab3118eb5bd41859a9b134ebaf18855bba3b20f399c7202a2f132563662')

package() {
  cd "$srcdir"
  install -Dm755 dasel_linux_amd64 "${pkgdir}/usr/bin/dasel"
  install -Dm644 ${_pkgname}-${pkgver}/LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}