summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 975c21afbc1508e61131d77f17e118641880ad84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Samuel Walladge <aur at swalladge dot net>

pkgname=peco
pkgver=0.5.8
pkgrel=2
pkgdesc='Simplistic interactive filtering tool'
arch=('i686' 'x86_64')
url='https://github.com/peco/peco'
license=('MIT')
makedepends=('go' 'wget')
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('90d87503265c12f8583f5c6bc19c83eba7a2e15219a6339d5041628aa48c4705')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}/"
  export GOPATH="${srcdir}" GOROOT_FINAL="/usr/bin" GO111MODULE=on
  mkdir -p out
  go mod download
  go build -o "out/${pkgname}" "cmd/${pkgname}/${pkgname}.go"
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}/"
  install -Dm755 "out/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/peco/LICENSE"
}

# vim:set ts=2 sw=2 et: