blob: 25fcbcb498f7f7f6a34b2a49ff773dbe66d59a86 (
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: Josh Ellithorpe <quest at mac dot com>
pkgname=s
pkgver=0.1.2
pkgrel=1
pkgdesc="Web search from the terminal. Supports google, reddit, amazon, wikipedia, yahoo, duckduckgo, and bing."
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=('8c9058436e7eb27db66ec4be3499f35e49284aba509b0b2b3506f3d23e7b9307')
_gourl="github.com/zquestz/${pkgname}"
build() {
cd "${pkgname}-${pkgver}"
export GOPATH="${srcdir}"
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"
}
|