Skip to content

Commit

Permalink
Update the source and install path of turbostat
Browse files Browse the repository at this point in the history
Change the install root to /lkp/benchmark for turbostat
update the source of the package

Signed-off-by: Wu Chenggang <[email protected]>
Reviewed-by: "Huang, Ying" <[email protected]>
Signed-off-by: Philip Li <[email protected]>
  • Loading branch information
dbshch authored and rli9 committed Jul 17, 2017
1 parent d49c079 commit a618fc4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkg/turbostat/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,23 @@ arch=('x86_64' 'i686')
url="http://acpi.sourceforge.net/dsdt/index.php"
license=('GPL')
conflicts=('pmtools')
source=("http://www.kernel.org/pub/linux/kernel/v3.x/${_srcname}.tar.xz")
source=("https://github.com/aaronlu/turbostat.git")
#"http://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.xz")

sha256sums=('becc413cc9e6d7f5cc52a3ce66d65c3725bc1d1cc1001f4ce6c32b69eb188cbd')
sha256sums=('SKIP')

#prepare() {
# cd "$_srcname"
# patch -p1 -i "${srcdir}/patch-${pkgver}"
#}

build() {
cd "$_srcname/tools/power/x86/$pkgname"
cd "$srcdir/$pkgname"
make
}

package() {
cd "$_srcname/tools/power/x86/$pkgname"
make DESTDIR="$pkgdir" install
cd "$srcdir/$pkgname"
mkdir -p "$pkgdir/lkp/benchmarks"
cp -a turbostat "$pkgdir/lkp/benchmarks/${pkgname}"
}

0 comments on commit a618fc4

Please sign in to comment.