void-packages/srcpkgs/zramen/template
2020-05-31 12:41:02 +02:00

25 lines
829 B
Bash

# Template file for 'zramen'
pkgname=zramen
version=0.2.1
revision=1
archs=noarch
depends="virtual?awk bash bc coreutils grep kmod util-linux"
short_desc="Manage zram swap space"
maintainer="Andy Weidenbaum <atweiden@tutanota.de>"
license="Unlicense"
homepage="https://github.com/atweiden/zramen"
distfiles="https://github.com/atweiden/zramen/releases/download/${version}/${pkgname}-${version}.tar.gz"
checksum=368d384eff501392e8dd12dbd12cc490352267fb214ec78f9b5f08f0883bc7c1
conf_files="/etc/sv/zramen/conf"
do_install() {
vbin zramen
vlicense UNLICENSE
vdoc README.md
vmkdir etc/sv
vcopy sv/zramen etc/sv
chmod 644 "${PKGDESTDIR}/etc/sv/zramen/conf"
chmod 755 "${PKGDESTDIR}/etc/sv/zramen/finish"
chmod 755 "${PKGDESTDIR}/etc/sv/zramen/run"
ln -s /run/runit/supervise.zramen "${PKGDESTDIR}/etc/sv/zramen/supervise"
}