summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 26f0bbc41255eaef50a1396a1e5b7cd9302c77f3 (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
33
34
35
36
37
# Maintainer: Bas Bleeker <bubbel@kpnplanet.nl>
pkgname=fping-git
pkgver=r469.b2d3517
pkgrel=1
pkgdesc="A utility to ping multiple hosts at once - development version"
arch=(x86_64)
url="http://www.fping.org/"
license=('Custom')
groups=()
depends=('glibc')
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=('fping')
conflicts=('fping')
source=("$pkgname"::'git://github.com/schweikert/fping.git#branch=develop')
md5sums=('SKIP')

pkgver() {
    cd "${pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "${pkgname}"
    ./autogen.sh
    ./configure --prefix=/usr --sbindir=/usr/bin
    make
}

check() {
    cd "${pkgname}"
    make -k check
}

package() {
    cd "${pkgname}"
    make DESTDIR="$pkgdir/" install
}