blob: 58a94d746982a05ffe858907a12731c17db18987 (
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
|
pkgname=dracut-swap-tpm2-git
_pkgname=dracut-swap-tpm2
pkgver=r3.b3e598d
pkgrel=1
pkgdesc="Dracut module to encrypt swap with hibernation support"
arch=('x86_64')
url="https://github.com/thesola10/dracut-swap-tpm2"
license=('CC0-1.0')
depends=('dracut'
'tpm2-tools'
'cryptsetup'
'util-linux')
makedepends=('git' 'make' 'gettext')
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/$_pkgname"
make DESTDIR="$pkgdir" install
}
|