blob: 76c139bcdbc6d88c866538061ae2f7b07d596be0 (
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
46
47
48
|
# Maintainer: Jianqiu Zhang <void001@archlinuxcn.org>
pkgname=ipmctl-git
pkgver=v02.00.00.3871.r1.gafa307c8
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" "patch")
source=(
${pkgname}::git+https://github.com/intel/ipmctl
os_mkdir_for_gcc_11.patch
)
md5sums=('SKIP'
'64811bb8558e36916502141f4eefce9c')
pkgver()
{
cd $srcdir/$pkgname
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare()
{
echo "Applying the patch to fix gcc_11 compatibility issue."
cp os_mkdir_for_gcc_11.patch "$srcdir/$pkgname"
cd "$srcdir/$pkgname"
git apply os_mkdir_for_gcc_11.patch
}
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:
|