summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 721bda984f1dae8289c70672afe70b17d841383e (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
38
39
40
41
42
43
44
45
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=ipmitool-git
pkgver=1.8.19.r13.gbe11d94
pkgrel=1
pkgdesc="Tool for controlling IPMI-enabled systems"
arch=('i686' 'x86_64')
url="https://github.com/ipmitool/ipmitool"
license=('BSD')
depends=('glibc' 'openssl')
makedepends=('git')
provides=("ipmitool=$pkgver")
conflicts=('ipmitool')
source=("git+https://github.com/ipmitool/ipmitool.git")
sha256sums=('SKIP')


pkgver() {
  cd "ipmitool"

  git describe --long --tags | sed 's/^IPMITOOL_//;s/\([^-]*-g\)/r\1/;s/[-_]/./g'
}

build() {
  cd "ipmitool"

  ./bootstrap
  ./configure \
    --prefix="/usr" \
    --sbindir="/usr/bin"
  make
}

check() {
  cd "ipmitool"

  make check
}

package() {
  cd "ipmitool"

  make DESTDIR="$pkgdir" install
  install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/ipmitool"
}