diff options
author | quest | 2016-01-24 01:49:05 -0800 |
---|---|---|
committer | quest | 2016-01-24 01:49:05 -0800 |
commit | abc60b5658231697eb17db29d2e28e7c6dedb28a (patch) | |
tree | df7ab2b74e1be2ac526668bb5e44f29395f61324 | |
download | aur-abc60b5658231697eb17db29d2e28e7c6dedb28a.tar.gz |
Adding files needed to build s
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..86ff7edc68fd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Sun Jan 24 09:48:47 UTC 2016 +pkgbase = s + pkgdesc = Web search from the terminal. Just opens your default browser. + pkgver = 0.1.0 + pkgrel = 1 + url = http://github.com/zquestz/s + arch = i686 + arch = x86_64 + license = MIT + makedepends = go + makedepends = git + provides = s=0.1.0 + options = !strip + options = !emptydirs + source = https://github.com/zquestz/s/archive/v0.1.0.tar.gz + sha256sums = 865e264ec56bce7ca77045ec2b723452efff578b469d35061f2ee2437d828dc4 + +pkgname = s + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1d1298ed7648 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Josh Ellithorpe <quest at mac dot com> + +pkgname=s +pkgver=0.1.0 +pkgrel=1 +pkgdesc="Web search from the terminal. Just opens your default browser." +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=('865e264ec56bce7ca77045ec2b723452efff578b469d35061f2ee2437d828dc4') +_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" +} |