# Maintainer: Brian Gisseler 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 }