blob: 07d3fff8b2c552af122c05da31ea13b945f25a40 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: Integral <integral@murena.io>
pkgname=qefientrymanager
_srcname=QEFIEntryManager
pkgver=0.3.0
pkgrel=4
pkgdesc="A userspace cross-platform EFI boot entry management GUI App based on Qt"
arch=('x86_64' 'aarch64' 'riscv64')
url="https://github.com/Inokinoki/${_srcname}"
license=('GPL3')
depends=('qt6-base' 'qt6-wayland' 'efivar' 'hicolor-icon-theme')
makedepends=('git' 'cmake')
source=(
"git+${url}.git#tag=v.${pkgver}"
"git+https://github.com/Inokinoki/qefivar.git"
"${pkgname}-wayland.desktop"
)
sha256sums=('SKIP'
'SKIP'
'c31daa87fe9e2b94cbcf3ff073b820e4a91c4b3da160b7a4f8af4c82ee236be2')
prepare() {
cd "${_srcname}/"
git submodule init
git config submodule.qefivar.url "${srcdir}/qefivar/"
git -c protocol.file.allow=always submodule update
}
build() {
cd "${_srcname}/"
mkdir build && cd build
cmake ..
make
}
package() {
cd "${_srcname}/"
# Binary file
install -Dm755 "build/${_srcname}" -t "${pkgdir}/usr/bin/"
# Desktop file (Xorg)
sed -i '/Exec=/c\
Exec=pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY QEFIEntryManager
' "${pkgname}.desktop"
install -Dm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications/"
# Desktop file (Wayland)
install -Dm644 "${srcdir}/${pkgname}-wayland.desktop" -t "${pkgdir}/usr/share/applications/"
# Icon
install -Dm644 cc.inoki.qefientrymanager.png -t "${pkgdir}/usr/share/icons/hicolor/96x96/apps/"
# License
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
# Documentation
install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
}
|