summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45adef73a0e2b72ed5fcd621d85bb92b8acb15ad (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=r37.fdeb07b
pkgrel=1
pkgdesc='Yet Another xDelta Patcher (latest commit)'
arch=('any')
url='https://github.com/Nhoya/YADP'
license=('GPL3')
depends=('yad' '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"
}