summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6ab1b808e2207a8ccaac72ff0905c920b908faa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Contributor linuxer <linuxer@artixlinux.org>

pkgname=swap-runit
pkgalias=runit-swap
_realname=runit-swap
pkgdesc="Runit swap service"
alias=runit-swap
pkgver=2.0.0
pkgrel=1
pkgbase=swap-runit
replaces=('runit-swap')
arch=('any')
url="https://aur.archlinux.org/packages/swap-runit"
license=('GPL3')
groups=()
depends=('runit' 'util-linux>=2.26')
source=("https://github.com/thypon/runit-swap/archive/v${pkgver}.tar.gz")
sha256sums=('SKIP')

package() {
    cd "${srcdir}/${alias}-${pkgver}"
    install -Dm 755 runit-swap -t "$pkgdir/usr/bin/"
    mkdir -p "$pkgdir"/etc/runit/sv/swap-runit
    install -Dm 644 swap/run "$pkgdir"/etc/runit/sv/swap-runit
    install -Dm 644 swap/finish "$pkgdir"/etc/runit/sv/swap-runit
}