summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 9 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 30c15ca2bcf..f6fd4ca8b4e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=intel-power-gadget
_pkgalias=power_gadget
pkgver=2.5
-pkgrel=2
+pkgrel=3
epoch=
pkgdesc="Intel Power Gadget Linux Version"
arch=('x86_64' 'x86')
@@ -25,6 +25,12 @@ noextract=()
md5sums=("995fc50d0c495e1b8ba1a88855fdb26b")
validpgpkeys=()
+prepare() {
+ cd "$srcdir/$_pkgalias"
+ sed -i 's|rapl_lib_static:|rapl_lib_static: rapl_lib_shared|' Makefile
+ sed -i 's|power_gadget_static:|power_gadget_static: rapl_lib_static|' Makefile
+}
+
build() {
cd "$srcdir/$_pkgalias"
make
@@ -34,8 +40,8 @@ package() {
cd "$srcdir/$_pkgalias"
mkdir -p "$pkgdir/usr/lib/"
mkdir -p "$pkgdir/usr/bin/"
- install -m755 librapl.so "$pkgdir/usr/lib/"
- install -m644 msr.o "$pkgdir/usr/lib/"
+ install -m755 librapl.so "$pkgdir/usr/lib/"
+ install -m644 msr.o "$pkgdir/usr/lib/"
install -m644 cpuid.o "$pkgdir/usr/lib/"
install -m644 rapl.o "$pkgdir/usr/lib/"
install -m755 power_gadget "$pkgdir/usr/bin/"