summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9fbb10cbb00c0293cb048e8483cd53ce1fcc1cfd (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
28
29
30
31
32
33
# Maintainer: mrxx <mrxx at cyberhome dot at>

pkgname=boot-digest
pkgver=0.8
pkgrel=2
pkgdesc="Digest boot partition for disk encryption integrity"
arch=('any')
url="https://github.com/alonbl/boot-digest"
license=('MIT')
depends=('bash' 'libnotify')
makedepends=('git')
source=("https://github.com/alonbl/boot-digest/archive/${pkgname}-${pkgver}.tar.gz" 'boot-digest-check.service' 'boot-digest-mkinitcpio' 'boot-digest.mkinitcpio-hook' 'boot-digest-alert'  'boot-digest-alert.desktop' )
sha1sums=('0286607d007cbc5a4219d201c980d28a59521c79'
          '948c773af5ac6963163179538bf6446fa821c3ed'
          '29e0e6005b319ed0d404a13f94e605f0c48895e1'
          '45b20e72bdc59d96bc07e8b339a560fef3af7e05'
          'ae3e5c67f981b842f95ac0e5c41bc5d76b0b5a7d'
          'f6c3dc2b5cd8fbd8b1f38936ebe167e2556aaef6')

install=boot-digest.install

package() {
    cd "$srcdir/$pkgname-$pkgname-$pkgver"
    sed -i '2,3d' boot-digest-mark
    install -Dm755 -t ${pkgdir}/usr/bin boot-digest-calc boot-digest-check boot-digest-mark
    install -Dm644 -t ${pkgdir}/usr/share/licenses/${pkgname} LICENSE
    install -Dm644 -t ${pkgdir}/usr/share/doc/${pkgname} ChangeLog
    cd "$srcdir"
    install -Dm644 boot-digest.mkinitcpio-hook ${pkgdir}/usr/lib/initcpio/install/boot-digest
    install -Dm644 -t ${pkgdir}/usr/lib/systemd/system boot-digest-check.service 
    install -Dm755 -t ${pkgdir}/usr/bin boot-digest-alert boot-digest-mkinitcpio
    install -Dm644 -t ${pkgdir}/etc/xdg/autostart boot-digest-alert.desktop
}