summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e92bb8bc875d13b5741e841c471d0aa239a0f22d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>

_pkgname=yadp
pkgname=$_pkgname-git
pkgver=0.0.0
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=("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/YADP "$pkgdir/usr/bin/$_pkgname"
}