summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 487014462559b70a581f7793ef2c873f34082317 (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
26
27
28
29
30
31
32
# Maintainer: Natrio <natrio@list.ru>

pkgname=whdd-git
_pkgname=whdd
pkgver=3.0.1.r
pkgrel=1
pkgdesc='HDD diagnostic and recovery tool for Linux'
url='https://github.com/whdd/whdd'
arch=(i686 x86_64)
license=(GPL)
conflicts=(whdd)
provides=(whdd)
depends=(dialog ncurses)
optdepends=('smartmontools: for reading SMART attributes')
source=('git+https://github.com/whdd/whdd.git')
md5sums=('SKIP')

pkgver() {
 cd "$_pkgname"
 IFS=- read _v _r < <(git describe)
 echo "$_v.r${_r//-/.}"
}

build() {
 cd "$_pkgname"
 make
}

package() {
 cd "$_pkgname"
 install -Dm755 whdd "$pkgdir/usr/bin/whdd"
}