diff options
author | Leo <thinkabit.ukim@gmail.com> | 2020-02-26 07:18:02 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-02-26 07:31:32 -0300 |
commit | 5d6650c822f30909b431f03124bedb7432b1194d (patch) | |
tree | 3dae05a4f244006d7aa0fcc9edd8302d5b51009e | |
parent | 075df0bacb2a1146a130b0e421f07479380921fa (diff) |
main/powertop: split bash-completion
-rw-r--r-- | main/powertop/APKBUILD | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/main/powertop/APKBUILD b/main/powertop/APKBUILD index d5b90a7da9c..4c3ce3898ae 100644 --- a/main/powertop/APKBUILD +++ b/main/powertop/APKBUILD @@ -2,14 +2,17 @@ # Maintainer: Leo <thinkabit.ukim@gmail.com> pkgname=powertop pkgver=2.11 -pkgrel=0 +pkgrel=1 pkgdesc="Power consumption monitor" url="https://01.org/powertop" arch="all" license="GPL-2.0-only" makedepends="linux-headers ncurses-dev pciutils-dev zlib-dev libnl-dev gettext-dev automake autoconf libtool" -subpackages="$pkgname-doc" +subpackages=" + $pkgname-doc + $pkgname-bash-completion:bashcomp:noarch + " source="$pkgname-$pkgver.tar.gz::https://github.com/fenrus75/powertop/archive/v$pkgver.tar.gz musl-fix-headers.patch " @@ -21,15 +24,21 @@ prepare() { } build() { - cd "$builddir" LIBS="-lintl" ./configure --prefix=/usr --disable-nls make } package() { - cd "$builddir" make DESTDIR="$pkgdir" install } +bashcomp() { + depends="" + pkgdesc="Bash completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + + amove usr/share/bash-completion +} + sha512sums="bbe2882196f1b3ae39885d38dd86018576bfac5b5e8f16ea10c7dfd197197d0493ae4ce83c969417a4c4239c41dbcfada989063f14e2943c088a7489e43953b7 powertop-2.11.tar.gz d3bb0e8eaa56fe9ef5aed5d7bea4860be2135fc163ec0c669dc2d01f5ee46ee22ee58cac0835518dc1a4e2939748cf57f2ab37e8d0d879bbc0161d66db7d1919 musl-fix-headers.patch" |