# Maintainer: gato_lento # Contributor: James W. Barnett pkgname=grub-btrfs pkgver=3.1.1 pkgrel=1 pkgdesc="Include btrfs snapshots in GRUB boot options" arch=('any') url="https://github.com/Antynea/grub-btrfs" license=('GPL3') depends=('btrfs-progs' 'grub') optdepends=('snapper: Snapper support') conflicts=('grub-btrfs-git') source=("https://github.com/Antynea/grub-btrfs/archive/${pkgver}.tar.gz") sha256sums=('3394aa8fd15f4e0fa92a4a75d9dcc0eadbe050250119197d5f861f3e5629a94a') install='grub-btrfs.install' backup=('etc/grub.d/41_snapshots-btrfs_config') package() { cd $pkgname-$pkgver install -Dm 755 "41_snapshots-btrfs" "${pkgdir}/etc/grub.d/41_snapshots-btrfs" install -Dm 755 "41_snapshots-btrfs_config" "${pkgdir}/etc/grub.d/41_snapshots-btrfs_config" install -Dm 644 "localisation/fr/grub-btrfs-git.mo" "${pkgdir}/usr/share/locale/fr/LC_MESSAGES/grub-btrfs-git.mo" install -Dm 644 "LICENSE" "${pkgdir}/usr/share/licenses/grub-btrfs/LICENSE" install -Dm 644 "10-update_grub.conf" "${pkgdir}/etc/systemd/system/snapper-timeline.service.d/10-update_grub.conf" install -Dm 644 "10-update_grub.conf" "${pkgdir}/etc/systemd/system/snapper-cleanup.service.d/10-update_grub.conf" }