diff options
author | Bin Jin | 2019-06-27 20:39:47 +0000 |
---|---|---|
committer | Bin Jin | 2019-06-28 04:39:47 +0800 |
commit | e8fbaf4922f21f062f731f4a3529d727ad3cefd7 (patch) | |
tree | 343292d7c8023a59bbedf1033ccf2f46c41b05f5 | |
parent | 94793e4552f79dcf40a636fb0ac796eb69f2dfb1 (diff) | |
download | aur-e8fbaf4922f21f062f731f4a3529d727ad3cefd7.tar.gz |
fix broken pkgver()
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 12 |
3 files changed, 15 insertions, 8 deletions
@@ -1,16 +1,19 @@ pkgbase = boringtun-git pkgdesc = Userspace WireGuard® Implementation in Rust - pkgver = 0.2.0.9.g201682d + pkgver = 0.2.0.8.g37be474 pkgrel = 1 url = https://github.com/cloudflare/boringtun arch = x86_64 arch = i686 + arch = aarch64 license = BSD-3-Clause makedepends = cargo makedepends = git + depends = gcc-libs + optdepends = wireguard-tools: tools and scripts for interface setup provides = boringtun conflicts = boringtun - source = boringtun-git::git+https://github.com/cloudflare/boringtun + source = boringtun-git::git+https://github.com/cloudflare/boringtun.git sha256sums = SKIP pkgname = boringtun-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b7c23def257f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/pkg +/src +/boringtun-git +*.pkg.tar.xz @@ -1,21 +1,21 @@ pkgname=boringtun-git -pkgver=0.2.0.9.g201682d +pkgver=0.2.0.8.g37be474 pkgrel=1 pkgdesc="Userspace WireGuard® Implementation in Rust" -arch=('x86_64' 'i686') +arch=('x86_64' 'i686' 'aarch64') url="https://github.com/cloudflare/boringtun" license=('BSD-3-Clause') -depends=() +depends=('gcc-libs') makedepends=('cargo' 'git') -optdepends=() +optdepends=('wireguard-tools: tools and scripts for interface setup') provides=('boringtun') conflicts=('boringtun') -source=($pkgname::git+https://github.com/cloudflare/boringtun) +source=($pkgname::git+https://github.com/cloudflare/boringtun.git) sha256sums=('SKIP') pkgver() { cd $pkgname - echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git describe --always) + echo "$(git describe --long --tags | sed 's/^v//;s/-/./g')" } build() { |