diff --git a/srcpkgs/zramen/template b/srcpkgs/zramen/template new file mode 100644 index 00000000000..8b46b401d2a --- /dev/null +++ b/srcpkgs/zramen/template @@ -0,0 +1,25 @@ +# Template file for 'zramen' +pkgname=zramen +version=0.2.0 +revision=1 +noarch=yes +depends="virtual?awk bash bc coreutils grep kmod util-linux" +short_desc="Manage zram swap space" +maintainer="Andy Weidenbaum " +license="Unlicense" +homepage="https://github.com/atweiden/zramen" +distfiles="https://github.com/atweiden/zramen/releases/download/${version}/${pkgname}-${version}.tar.gz" +checksum=4220aa5207e93a60536b2d4a62fcae34b1a9d062c514dc21811c95d0293f7dfe +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" +}