simple-suspend: new ptrcport

This commit is contained in:
ptrcnull 2022-07-06 14:58:41 +02:00
parent 4f34618280
commit c8ede93e65
2 changed files with 22 additions and 0 deletions

20
simple-suspend/APKBUILD Normal file
View file

@ -0,0 +1,20 @@
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=simple-suspend
pkgver=1
pkgrel=0
pkgdesc="the simplest suspend script"
url="https://git.ddd.rip/ptrcnull/ptrcports"
arch="noarch"
license="BSD-2-Clause"
source="suspend"
builddir="$srcdir"
options="!check"
package() {
install -Dm755 suspend -t "$pkgdir"/usr/bin
}
sha512sums="
012a0a07d31c222043ea9c5ed66ba6b25d7221ffd832e4ddee5082bf4ec49b5d79edced5973ca110081bdb642f3350ac51ba59c74e997822b7b6f9c9ca5aef30 suspend
"

2
simple-suspend/suspend Normal file
View file

@ -0,0 +1,2 @@
#!/bin/sh
sh -c 'echo "mem" > /sys/power/state'