summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0330f1a168d89d8d65720c436f46b3fbd60644b5 (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
# Maintainer: Jianqiu Zhang <void001@archlinuxcn.org>

pkgname=ipmctl-git
pkgver=v02.00.00.3673.r14.gc9a426c7
pkgrel=1
pkgdesc="util for configuring and managing Intel Optane DC persistent memory modules (DCPMM)."
arch=('x86_64')
url="https://github.com/intel/ipmctl"
license=(GPL3)
depends=("ndctl")
makedepends=("cmake" "git" "python3" "ndctl")
source=(${pkgname}::git+https://github.com/intel/ipmctl)
md5sums=('SKIP')

pkgver()
{
  cd $srcdir/$pkgname
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare()
{
  echo "prepare()"
}

build() {
  cd "$srcdir/$pkgname"
  mkdir build && cd build
  cmake -DRELEASE=ON -DCMAKE_INSTALL_PREFIX=$pkgdir/usr ..
  make -j all
}

package() {
  cd $srcdir/$pkgname/build
  make install
  mv $pkgdir/usr/etc $pkgdir/etc
  mv $pkgdir/usr/var $pkgdir/var
}

# vim:set ts=2 sw=2 et: