summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fdc3efa608c7e45c78bc88a3abefa69f9321978c (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=2.2.r16.g5da4969
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"
}