diff options
author | begin-theadventure | 2023-08-25 10:18:42 +0200 |
---|---|---|
committer | begin-theadventure | 2023-08-25 10:18:42 +0200 |
commit | e9faae25b27ef2c30267743dfc3e65ca0298cb0a (patch) | |
tree | 73d78ce946477d9672132221347d7bd656a016ab | |
parent | b056898198ce3a2efd88e869c9a39cc58c96541a (diff) | |
download | aur-e9faae25b27ef2c30267743dfc3e65ca0298cb0a.tar.gz |
Git clone and proper versioning
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 12 insertions, 5 deletions
@@ -1,14 +1,15 @@ pkgbase = yadp-git pkgdesc = Yet Another xDelta Patcher pkgver = 0.0.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/Nhoya/YADP arch = any license = GPL3 + makedepends = git depends = xdelta3 provides = yadp conflicts = yadp - source = https://raw.githubusercontent.com/Nhoya/YADP/master/YADP + source = git+https://github.com/Nhoya/YADP.git sha256sums = SKIP pkgname = yadp-git @@ -3,17 +3,23 @@ _pkgname=yadp pkgname=$_pkgname-git pkgver=0.0.0 -pkgrel=1 +pkgrel=2 pkgdesc='Yet Another xDelta Patcher' arch=('any') url='https://github.com/Nhoya/YADP' license=('GPL3') depends=('xdelta3') +makedepends=('git') conflicts=($_pkgname) provides=($_pkgname) -source=("https://raw.githubusercontent.com/Nhoya/YADP/master/YADP") +source=("git+$url.git") sha256sums=('SKIP') +pkgver() { + cd YADP + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + package() { - install -Dm755 YADP "$pkgdir/usr/bin/$_pkgname" + install -Dm755 YADP/YADP "$pkgdir/usr/bin/$_pkgname" } |