diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 15 insertions, 20 deletions
@@ -1,6 +1,6 @@ pkgbase = linux-timemachine-git pkgdesc = Rsync-based OSX-like time machine for atomic and resumable local and remote backups - pkgver = 1.1 + pkgver = v1.2.r0.g19d6e9a pkgrel = 1 url = https://github.com/cytopia/linux-timemachine arch = any @@ -8,7 +8,7 @@ pkgbase = linux-timemachine-git makedepends = git depends = rsync optdepends = openssh: backup to remote (SCP) locations - source = linux-timemachine-git-1.1::git+https://github.com/cytopia/linux-timemachine.git + source = linux-timemachine-git::git+https://github.com/cytopia/linux-timemachine.git sha256sums = SKIP pkgname = linux-timemachine-git @@ -4,31 +4,26 @@ pkgname="linux-timemachine-git" pkgdesc="Rsync-based OSX-like time machine for atomic and resumable local and remote backups" url="https://github.com/cytopia/linux-timemachine" -pkgver=1.1 +pkgver=v1.2.r0.g19d6e9a pkgrel=1 arch=("any") license=("MIT") -makedepends=( - "git" -) -depends=( - "rsync" -) -optdepends=( - "openssh: backup to remote (SCP) locations" -) - -source=( - "${pkgname}-${pkgver}::git+https://github.com/cytopia/linux-timemachine.git" -) -sha256sums=( - "SKIP" -) +makedepends=("git") +depends=("rsync") +optdepends=("openssh: backup to remote (SCP) locations") + +source=("${pkgname}::git+https://github.com/cytopia/linux-timemachine.git") +sha256sums=("SKIP") + +pkgver() { + cd "${pkgname}" + git describe --long --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} package() { - cd "${srcdir}/${pkgname}-${pkgver}/" + cd "${srcdir}/${pkgname}" install \ -Dm755 \ |