summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 57bb5b2fd9f3ee1d18d851ef5146bef94e7f7c35 (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
29
30
31
32
33
34
# Maintainer: Samuel Walladge <swalladge at gmail dot com>

pkgname=peco
pkgver=0.3.3
pkgrel=1
pkgdesc='Simplistic interactive filtering tool'
arch=('x86_64' 'i686')
url='https://github.com/peco/peco'
license=('MIT')
makedepends=('go' 'git' )
depends=('glibc')
source=("https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('3d30a8788c2c7cf4ac44bc5ad09415b9b6245c6e842e46b4e234cb844e929c84')

prepare() {
  export GOPATH="$srcdir"
  go get github.com/${pkgname}/${pkgname}
}

build() {
  cd "${pkgname}-${pkgver}/cmd/${pkgname}"

  GOPATH="$srcdir" go build
}

package() {
  cd "${pkgname}-${pkgver}"

  install -Dm755 "./cmd/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

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