mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
testing/throttled: simplify packaging
This commit is contained in:
parent
3008eb0fe3
commit
e0598fd3d7
1 changed files with 1 additions and 7 deletions
|
@ -8,7 +8,6 @@ url="https://github.com/erpalma/throttled"
|
|||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py3-dbus py3-psutil py3-gobject3 pciutils"
|
||||
checkdepends="python3"
|
||||
subpackages="$pkgname-openrc $pkgname-pyc"
|
||||
options="!check" # no tests.
|
||||
source="
|
||||
|
@ -16,11 +15,6 @@ source="
|
|||
no-venv-openrc.patch
|
||||
"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
mv $srcdir/$pkgname-$pkgver/openrc/throttled $srcdir/$pkgname-$pkgver/openrc/throttled.initd
|
||||
}
|
||||
|
||||
pyc() {
|
||||
default_pyc
|
||||
amove usr/lib/$pkgname/__pycache__/
|
||||
|
@ -32,7 +26,7 @@ build() {
|
|||
|
||||
package() {
|
||||
install -Dm644 etc/throttled.conf "$pkgdir"/etc/throttled.conf
|
||||
install -Dm755 openrc/throttled.initd "$pkgdir"/etc/init.d/throttled
|
||||
install -Dm755 openrc/throttled "$pkgdir"/etc/init.d/throttled
|
||||
install -Dm755 throttled.py "$pkgdir"/usr/lib/$pkgname/throttled.py
|
||||
install -Dm755 mmio.py "$pkgdir"/usr/lib/$pkgname/mmio.py
|
||||
cp -a __pycache__ "$pkgdir"/usr/lib/$pkgname/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue