Browse Source

Initial Commit

master
linuxer 1 year ago
commit
267208c142
Signed by: linuxer
GPG Key ID: CCD2779140DF9E58
  1. 23
      PKGBUILD
  2. 11
      zramen.initd

23
PKGBUILD

@ -0,0 +1,23 @@
# Contributor linuxer <https://gitea.artixlinux.org/linuxer>
pkgname=zramen-openrc
pkgdesc="Zramen and OpenRC init scripts"
alias=zramen
pkgver=0.2.1
pkgrel=1
arch=('any')
url="https://gitea.artixlinux.org/linuxer/PKGBUILDS/zramen-openrc"
license=('Unlicense')
groups=()
depends=('openrc' 'bc')
source=("https://github.com/atweiden/zramen/releases/download/${pkgver}/zramen-${pkgver}.tar.gz"
"zramen.initd")
b2sums=('1c8d69609fb311ce566b3120af11d16a633f1c64c2104df80dd3fbf22e1f41a609bb53420d4c3fc1e9393d887647d1f6a6a0e3609a022787b3cf0d1fd4200886'
'ee5599bffcc93bce4f50ce4205f759cf4d3de00bfd663c00d48fbc27f90aeee9245709eb8d9259e2b16e05c68ee6d224a98191e373f109ee09f0977cae724759')
package() {
install -Dm 755 zramen.initd "$pkgdir/etc/init.d/zramen"
cd "${srcdir}/${alias}-${pkgver}"
install -Dm 755 zramen "$pkgdir/usr/bin/zramen"
install -Dm 755 sv/zramen/conf "$pkgdir/etc/conf.d/zramen.conf"
}

11
zramen.initd

@ -0,0 +1,11 @@
#!/usr/bin/openrc-run
pidfile="/run/zramen.pid"
command="/usr/bin/zramen"
command_args="make"
command_background=true
stop() {
/usr/bin/zramen toss
}
Loading…
Cancel
Save