summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 64c8c625b58cf5c3fb5e4e0189bbedf8c045f1de (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
35
# Maintainer: Kian Kasad <kian at kasad.com>
pkgname=mkinitcpio-encrypt-bootsplash
pkgver=1.0
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.patch'
	'encrypt-install'
)
sha256sums=(
	'416aa179ce3c6a7a5eee0861f1f0a4fafac91b69e84a2aae82b6e5a6140e31e2'
	'658cdae681c25d6c0abdaf6b3913c091d58e730c8e0124a5e3c24efeb2adbdd9'
	'd325dc239ecc9a5324407b0782da6df2573e8491251836d6c4e65fa61339ce57'
)

prepare() {
	cd "$srcdir"

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

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

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
}