summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hacohen2020-08-21 14:32:42 +0300
committerTom Hacohen2020-08-21 14:32:44 +0300
commit4051e450d2058376bbf96e4ba13c9ee02fa33943 (patch)
tree12b39dd7d3ae523c0270ca40aafae996b9090924
parent7b1df3712f91f683eb2f8702422e1abb7322b16f (diff)
downloadaur-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--.SRCINFO3
-rw-r--r--PKGBUILD8
2 files changed, 6 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d44e7877070..d7a6107901b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index e4919114d29..cee8c01cdc8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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() {