# Maintainer: David P. <megver83@parabola.nu>

pkgname=grub-btrfs-openrc
pkgver=20260609
pkgrel=1
pkgdesc='OpenRC grub-btrfs init script'
arch=('any')
url="https://github.com/Antynea/grub-btrfs"
license=('GPL-3.0-only')
groups=('openrc-galaxy')
provides=('init-grub-btrfsd')
conflicts=('init-grub-btrfsd')
backup=('etc/conf.d/grub-btrfsd')
source=("grub-btrfsd.confd"
        "grub-btrfsd.initd")
b2sums=('07b9f7f8cadbca7c0cb8bf57cb06ca1a4269e0717727a69bbca43e59a757ff2c9462f20a457497e072aa0ad5a9f9db9ef6b7360a1bf37584ef0e4107e46daf9a'
        'd0754e207efd6fb58b9a34fe7bc7e1aa795b4ec5b1e8f492f920125a77e96e283c27c1466a2ee45112824ef4da1e23d8c532b70eb505a92280a6ef5f25e0ce82')

package() {
    depends=('openrc' 'grub-btrfs')

    install -Dm755 "$srcdir/grub-btrfsd.initd" "$pkgdir/etc/init.d/grub-btrfsd"
    install -Dm644 "$srcdir/grub-btrfsd.confd" "$pkgdir/etc/conf.d/grub-btrfsd"
}
