# Template file for 'Swapspace'
pkgname=Swapspace
version=1.18
revision=1
build_style=gnu-configure
hostmakedepends="autoconf automake"
short_desc="Dynamic swap manager for Linux"
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/Tookmund/swapspace"
changelog="https://raw.githubusercontent.com/Tookmund/Swapspace/master/NEWS"
distfiles="https://github.com/Tookmund/Swapspace/archive/v${version}/${version}.tar.gz"
checksum=4efbf0815c3e3f85e907a693ab5e74ae99f0041a3bb41358c68c2d4ac370fec2
conf_files="/etc/swapspace.conf"
make_dirs="/var/lib/swapspace 0700 root root"

pre_configure() {
	autoreconf -vfi
}

post_install() {
	vman doc/swapspace.8

	vsv swapspace
}
