blob: 1bf07dfd9079b0340c0673e4d1e2657ff2fe96f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: Brian Gisseler <gissf1@gmail.com>
pkgname=zram-hibernate-git
pkgver=r32.0b1e7a7
pkgrel=1
pkgdesc="activate disk-based storage as swap for hibernation support when a system typically uses only zram swap"
arch=('any')
url="https://github.com/gissf1/zram-hibernate"
license=('apache')
source=('git+https://github.com/gissf1/zram-hibernate')
makedepends=('git')
depends=('ncurses' 'util-linux' 'bash' 'coreutils' 'sed' 'systemd' 'grep' 'gawk' 'sudo')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir"/zram-hibernate
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir"/zram-hibernate
install -dm755 $pkgdir/usr/lib/systemd/system-sleep/
install -Dm755 zram-hibernate $pkgdir/usr/lib/systemd/system-sleep/zram-hibernate
install -dm755 $pkgdir/etc/systemd/system/systemd-logind.service.d/
install -Dm644 logind-disable-hibernate-swap-check.conf $pkgdir/etc/systemd/system/systemd-logind.service.d/logind-disable-hibernate-swap-check.conf
install -dm755 $pkgdir/etc/systemd/system/systemd-hibernate.service.d/
install -Dm644 logind-disable-hibernate-swap-check.conf $pkgdir/etc/systemd/system/systemd-hibernate.service.d/logind-disable-hibernate-swap-check.conf
install -Dm644 README.md $pkgdir/usr/share/doc/$pkgname/README.md
}
|