# Maintainer: Josh Ellithorpe pkgname=s pkgver=0.5.9 pkgrel=1 pkgdesc="Web search from the terminal. Supports over 50 providers including google, github, and stackoverflow." arch=('i686' 'x86_64') url="http://github.com/zquestz/s" license=('MIT') makedepends=('go' 'git') options=('!strip' '!emptydirs') provides=("s=${pkgver}") source=("https://github.com/zquestz/${pkgname}/archive/v${pkgver}.tar.gz") sha256sums=('7dba775f7fdf6c8dc28ace8795e8f57c0b7dd6148f14fe4b17c5a4eb46b675ec') _gourl="github.com/zquestz/${pkgname}" build() { cd "${pkgname}-${pkgver}" export GOPATH="${srcdir}" export GOBIN="${srcdir}/bin" go get -v ${_gourl} } package() { install -Dm 775 "${srcdir}/bin/${pkgname}" \ "${pkgdir}/usr/bin/${pkgname}" install -Dm 644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" \ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm 644 "${srcdir}/${pkgname}-${pkgver}/autocomplete/s-completion.bash" \ "${pkgdir}/usr/share/bash-completion/completions/s" }