diff options
author | Tom Hacohen | 2020-08-21 14:32:42 +0300 |
---|---|---|
committer | Tom Hacohen | 2020-08-21 14:32:44 +0300 |
commit | 4051e450d2058376bbf96e4ba13c9ee02fa33943 (patch) | |
tree | 12b39dd7d3ae523c0270ca40aafae996b9090924 | |
parent | 7b1df3712f91f683eb2f8702422e1abb7322b16f (diff) | |
download | aur-4051e450d2058376bbf96e4ba13c9ee02fa33943.tar.gz |
Fix version string and add git to makedpends.
Verion, update according to guidelines:
https://wiki.archlinux.org/index.php/VCS_package_guidelines#Git
Thanks to FabioLolix for bringing this up.
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 6 insertions, 5 deletions
@@ -1,11 +1,12 @@ pkgbase = etesync-git pkgdesc = EteSync C library - pkgver = 0.1.0.75 + pkgver = 0.1.0.r75.917fff5 pkgrel = 1 url = https://github.com/etesync/etesync-rs arch = x86_64 license = LGPL makedepends = cargo + makedepends = git depends = openssl provides = etesync conflicts = etesync @@ -2,22 +2,22 @@ pkgname=etesync-git _pkgname=etesync -pkgver=0.1.0.75 +pkgver=0.1.0.r75.917fff5 pkgrel=1 pkgdesc="EteSync C library" arch=(x86_64) url="https://github.com/etesync/etesync-rs" license=('LGPL') depends=('openssl') -makedepends=('cargo') +makedepends=('cargo' 'git') source=("${_pkgname}::git+https://github.com/etesync/etesync-rs.git") sha512sums=('SKIP') provides=(etesync) conflicts=(etesync) pkgver() { - cd "$_pkgname" - printf "0.1.0.%s" "$(git rev-list --count HEAD)" + cd "$_pkgname" + printf "0.1.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { |