diff options
author | Vincent Petithory | 2015-07-07 22:12:19 +0200 |
---|---|---|
committer | Vincent Petithory | 2015-07-07 22:12:19 +0200 |
commit | 93b6957918cd5ce2a94ef17a5ba88d4a04f2a4ae (patch) | |
tree | 297552e3a5dbb5ec07265055dd684850212ddbc7 | |
download | aur-93b6957918cd5ce2a94ef17a5ba88d4a04f2a4ae.tar.gz |
Initial import to aur4
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8c34c832e3db --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = kraken-git + pkgdesc = File sharing with HTTP servers. + pkgver = r70.2c5f7ce + pkgrel = 1 + url = https://github.com/vincent-petithory/kraken + arch = x86_64 + arch = i686 + arch = ARM + license = MIT + makedepends = go + makedepends = git + options = !strip + options = !emptydirs + source = git+https://github.com/vincent-petithory/kraken.git + md5sums = SKIP + +pkgname = kraken-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5c8c3472ebb8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Vincent Petithory <vincent.petithory at gmail dot com> + +pkgname=kraken-git +pkgver=r70.2c5f7ce +pkgrel=1 +pkgdesc='File sharing with HTTP servers.' +arch=('x86_64' 'i686' 'ARM') +url='https://github.com/vincent-petithory/kraken' +license=('MIT') +makedepends=('go' 'git') +depends=() +options=('!strip' '!emptydirs') +source=('git+https://github.com/vincent-petithory/kraken.git') +md5sums=('SKIP') +_gourl='github.com/vincent-petithory/kraken' + +pkgver() { + cd "$srcdir/kraken" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + p="${srcdir}/src/${_gourl}" + if [ -d "${p}/.git" ]; then + git --git-dir="${p}/.git" --work-tree="$p" remote set-url origin "file://${srcdir}/kraken" + git --git-dir="${p}/.git" --work-tree="$p" pull origin + else + git clone file://"${srcdir}/kraken" "${p}" + fi + export GOPATH="$srcdir" + go get -v "${_gourl}/..." + go install "${_gourl}/..." +} + +package() { + install -D -m755 "${srcdir}/bin/krakend" "${pkgdir}/usr/bin/krakend" + install -D -m755 "${srcdir}/bin/krakenctl" "${pkgdir}/usr/bin/krakenctl" + install -D -m644 "${srcdir}/src/${_gourl}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |