mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
22 lines
997 B
Bash
22 lines
997 B
Bash
pkgname=systemd-swap
|
|
pkgver=2.25.2
|
|
pkgrel=1
|
|
pkgdesc="Script for creating hybrid swap space from zram swaps, swap files and swap partitions."
|
|
arch=('x86_64')
|
|
url="https://github.com/TimofeyTitovets/systemd-swap"
|
|
license=('GPL3')
|
|
conflicts=('systemd-loop-swapfile' 'zramswap' 'zram')
|
|
depends=('systemd' 'bash')
|
|
replace=('zramswap')
|
|
backup=(etc/systemd-swap.conf)
|
|
install=$pkgname.install
|
|
source=("https://github.com/Nefelim4ag/${pkgname}/archive/${pkgver}.tar.gz")
|
|
md5sums=('f01d21720946b939c20a667f1bf8cc84')
|
|
|
|
package() {
|
|
install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/90-systemd-swap.conf "${pkgdir}"/etc/modprobe.d/90-systemd-swap.conf
|
|
install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/systemd-swap.service "${pkgdir}"/usr/lib/systemd/system/systemd-swap.service
|
|
install -Dm755 "${srcdir}"/${pkgname}-${pkgver}/systemd-swap.sh "${pkgdir}"/usr/lib/systemd/scripts/systemd-swap.sh
|
|
install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/systemd-swap.conf "${pkgdir}"/etc/systemd-swap.conf
|
|
}
|