blob: f04f4b89b11469544ee48f022a180a1b8afc0eba (
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
|
# Maintainer: Samuel Walladge <samuel at swalladge dot id dot au>
pkgname=peco
pkgver=0.5.1
pkgrel=1
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=('1acbf8f7f077208a8d4406a37be88783432455d6ff905e0a19168c7c2a34f1c8')
prepare() {
install -d "${srcdir}/src/github.com/${pkgname}"
cp -r "${pkgname}-${pkgver}/" "${srcdir}/src/github.com/${pkgname}/${pkgname}"
}
build() {
export GOPATH="${srcdir}" GOROOT_FINAL="/usr/bin"
cd "${srcdir}/src/github.com/${pkgname}/${pkgname}"
make installdeps
go build cmd/${pkgname}/${pkgname}.go
}
package() {
install -Dm755 "${srcdir}/src/github.com/${pkgname}/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}
# vim:set ts=2 sw=2 et:
|