summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5628fa7938f6f674ff60d942a150c389a76a45c6 (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
34
# Maintainer: Kian Kasad <kian at kasad.com>
pkgname=mkinitcpio-encrypt-bootsplash
pkgver=2
pkgrel=1
pkgdesc="a mkinitcpio hook to pause bootsplash for LUKS password input"
arch=(x86_64)
url="https://github.com/archlinux/svntogit-packages/tree/packages/cryptsetup/trunk"
license=('GPL')
depends=(cryptsetup linux-bootsplash)
source=(
	'encrypt-hook'
	'encrypt-hook.diff'
	'encrypt-install'
)
sha256sums=('416aa179ce3c6a7a5eee0861f1f0a4fafac91b69e84a2aae82b6e5a6140e31e2'
            'ce0edec30abd79e7f72de45d37beb0de6aefea6242a7b5057a51289ca0a7f387'
            'd325dc239ecc9a5324407b0782da6df2573e8491251836d6c4e65fa61339ce57')
install=$pkgname.install

prepare() {
	cd "$srcdir"

	mkdir -p $pkgname
	cp encrypt-hook encrypt-install -t $pkgname

	cd $pkgname
	patch -Np1 -i ../encrypt-hook.diff
}

package() {
	cd "$srcdir/$pkgname"
	install -Dm 0644 encrypt-hook -T "$pkgdir"/usr/lib/initcpio/hooks/encrypt-bootsplash
	install -Dm 0644 encrypt-install -T "$pkgdir"/usr/lib/initcpio/install/encrypt-bootsplash
}