25 lines
728 B
Bash
25 lines
728 B
Bash
# Template file for 'runit-swap'
|
|
pkgname=runit-swap
|
|
version=2.0.0
|
|
revision=1
|
|
build_style=meta
|
|
depends="runit bash util-linux>=2.26"
|
|
hostmakedepends="git"
|
|
short_desc="Script to manage swapspaces"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="GPL-3"
|
|
homepage="https://github.com/thypon/runit-swap"
|
|
conf_files="/etc/runit/swap.conf"
|
|
archs=noarch
|
|
distfiles="$homepage/archive/v$version.tar.gz"
|
|
checksum=a66730777fb084564e7fae67f2017d775b757b6b6c0c319802f71bed2184e958
|
|
|
|
do_install() {
|
|
vbin runit-swap
|
|
vinstall swap.conf 644 etc/runit
|
|
|
|
vinstall swap/run 755 etc/sv/runit-swap
|
|
vinstall swap/finish 755 etc/sv/runit-swap
|
|
ln -s /run/runit/supervise.runit-swap ${PKGDESTDIR}/etc/sv/runit-swap/supervise
|
|
}
|