8ddd61d984
[ci skip]
25 lines
827 B
Bash
25 lines
827 B
Bash
# Template file for 'zramen'
|
|
pkgname=zramen
|
|
version=0.2.0
|
|
revision=1
|
|
archs=noarch
|
|
depends="virtual?awk bash bc coreutils grep kmod util-linux"
|
|
short_desc="Manage zram swap space"
|
|
maintainer="Andy Weidenbaum <archbaum@gmail.com>"
|
|
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"
|
|
}
|