diff options
author | Jon Gjengset | 2018-02-06 14:13:22 -0500 |
---|---|---|
committer | Jon Gjengset | 2018-02-06 14:13:22 -0500 |
commit | 00b6307999dcb46a5668b14d721f54a95cf1d0fb (patch) | |
tree | 4f5a72ced51f991bd605dbe5ddf1dea1c5f6e396 | |
parent | 91b4bace5c89c533e1d48a43ec6275dee7e93edc (diff) | |
download | aur-00b6307999dcb46a5668b14d721f54a95cf1d0fb.tar.gz |
Updated for newest Vuvuzela
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 55 |
3 files changed, 37 insertions, 38 deletions
@@ -1,19 +1,16 @@ -# Generated by mksrcinfo v8 -# Tue Dec 19 23:04:19 UTC 2017 pkgbase = vuvuzela-git pkgdesc = Scalable Private Messaging - pkgver = 20160420 + pkgver = r104.b7327a9 pkgrel = 1 - url = https://github.com/davidlazar/vuvuzela - arch = i686 + url = https://vuvuzela.io/ arch = x86_64 + arch = i686 license = AGPL3 makedepends = git - makedepends = go - depends = ncurses - provides = vuvuzela - conflicts = vuvuzela - source = git+https://github.com/davidlazar/vuvuzela + makedepends = go>=1.8 + options = !strip + options = !emptydirs + source = git+https://github.com/vuvuzela/vuvuzela.git sha256sums = SKIP pkgname = vuvuzela-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..241dc51b047d --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +src/ +pkg/ +*.pkg.tar.xz @@ -1,45 +1,44 @@ # Maintainer: Andy Weidenbaum <archbaum@gmail.com> +# Contributor: Jon Gjengset <jon@thesquareplanet.com> pkgname=vuvuzela-git -pkgver=20160420 +pkgver=r104.b7327a9 pkgrel=1 pkgdesc="Scalable Private Messaging" -arch=('i686' 'x86_64') -depends=('ncurses') -makedepends=('git' 'go') -url="https://github.com/davidlazar/vuvuzela" +arch=('x86_64' 'i686') +url="https://vuvuzela.io/" license=('AGPL3') -source=(git+https://github.com/davidlazar/vuvuzela) +makedepends=('git' 'go>=1.8') +options=('!strip' '!emptydirs') +_gourl=vuvuzela.io/vuvuzela/cmd/vuvuzela-client +source=("git+https://github.com/vuvuzela/vuvuzela.git") sha256sums=('SKIP') -provides=('vuvuzela') -conflicts=('vuvuzela') pkgver() { - cd ${pkgname%-git} - git log -1 --format="%cd" --date=short --no-show-signature | sed "s|-||g" + cd "$srcdir/vuvuzela" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { - cd ${pkgname%-git} + export GOROOT=/usr/lib/go + export GOPATH="$srcdir/build" + mkdir -p "$GOPATH" - msg2 'Building...' - GOPATH="$srcdir" TMPDIR=/tmp go get -u -v github.com/davidlazar/vuvuzela/... -} - -package() { - cd ${pkgname%-git} + mkdir -p "$GOPATH/src/vuvuzela.io" + mv "$srcdir/vuvuzela" "$GOPATH/src/vuvuzela.io/vuvuzela" + cd "$GOPATH/src/$_gourl" - msg2 'Installing documentation...' - install -dm 755 "$pkgdir/usr/share/doc/${pkgname%-git}" - for _doc in README.md confs screenshots; do - cp -dpr --no-preserve=ownership $_doc \ - "$pkgdir/usr/share/doc/${pkgname%-git}" - done + msg2 "Downloading dependencies" + go get -d -fix . - msg2 'Installing executables...' - find "$srcdir/bin" -mindepth 1 -maxdepth 1 -type f -exec \ - install -Dm 755 '{}' -t "$pkgdir/usr/bin" \; + msg2 "Building client" + go install ./... +} - msg2 'Cleaning up pkgdir...' - find "$pkgdir" -type d -name .git -exec rm -r '{}' + +package() { + install -Dm755 \ + "$srcdir/build/bin/vuvuzela-client" \ + "$pkgdir/usr/bin/vuvuzela-client" } + +# vim:set ts=2 sw=2 et: |