summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 06fd4059a59ef04e825af2c89a786762c24d7bb6 (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: Artemii Sudakov <finziyr@yandex.ru>

pkgname="kesboot-git"
pkgver=1.6.r0.g4531557
pkgrel=1
pkgdesc='Script for automating work with EFI Kernel Stub (linux)'
arch=('any')
url="https://github.com/BiteDasher/kesboot"
license=('MIT')
depends=('efibootmgr' 'sed' 'grep' 'util-linux' 'coreutils' 'binutils')
makedepends=('git')
source=("${pkgname}::git+https://github.com/BiteDasher/kesboot.git")
sha512sums=("SKIP")
backup=('etc/kesboot.conf')
options=(emptydirs)

pkgver() {
	cd "$srcdir/$pkgname"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
	cd "$srcdir/$pkgname"
	export pkgdir
	./install.sh makepkg
	install -Dm755 ./firstboot "$pkgdir"/usr/lib/setup-efi-boot
	install -Dm644 ./LICENSE "$pkgdir"/usr/share/licenses/kesboot/LICENSE
}