void-packages/srcpkgs/runit-swap/template
Đoàn Trần Công Danh e2d4a71254 runit-swap: remove noarch
2020-11-29 09:46:07 +07:00

23 lines
722 B
Bash

# Template file for 'runit-swap'
pkgname=runit-swap
version=2.0.0
revision=2
build_style=meta
hostmakedepends="git"
depends="runit bash util-linux>=2.26"
short_desc="Script to manage swapspaces"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-3.0-only"
homepage="https://github.com/thypon/runit-swap"
conf_files="/etc/runit/swap.conf"
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
}