summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: da857236b69d5c6fefe87ba1cb2c58d397fbc861 (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
27
# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
# Contributor: gato_lento <vukk.euob at gmail dot com>
# Contributor: James W. Barnett <james at wbarnett dot us>

pkgname=grub-btrfs
pkgver=3.5.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')
backup=('etc/grub.d/41_snapshots-btrfs_config')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Antynea/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('bfaba61f2142e329be37b5d211a61677f45665be112014b9c2d1835520a32f85')

package() {
    cd "$pkgname-$pkgver"
    install -Dm755 -t "$pkgdir/etc/grub.d" 41_snapshots-btrfs
    install -Dm755 -t "$pkgdir/etc/grub.d" 41_snapshots-btrfs_config
    install -Dm644 -t "$pkgdir/usr/share/locale/fr/LC_MESSAGES" localisation/fr/grub-btrfs-git.mo
    install -Dm644 -t "$pkgdir/usr/lib/systemd/system/snapper-timeline.service.d" 10-update_grub.conf
    install -Dm644 -t "$pkgdir/usr/lib/systemd/system/snapper-cleanup.service.d" 10-update_grub.conf
}

# vim:set ts=4 sw=4 et: