blob: 81d7f63a227a2b37543da866c2d61ed758185559 (
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
60
61
62
63
64
65
66
67
|
# Maintainer: Integral <integral@murena.io>
pkgname=qefientrymanager-git
_pkgname=${pkgname%-git}
_srcname=QEFIEntryManager
pkgver=0.3.0.r3.gc7db9b6
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')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=(
"git+${url}.git"
"git+https://github.com/Inokinoki/qefivar.git"
"${_pkgname}-wayland.desktop"
)
sha256sums=('SKIP'
'SKIP'
'c31daa87fe9e2b94cbcf3ff073b820e4a91c4b3da160b7a4f8af4c82ee236be2')
pkgver() {
cd "${_srcname}/"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v.//'
}
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}/"
}
|