blob: f9d28f6e6a7b152a202f2b0fa7b1f233407573b0 (
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
|
# Maintainer: Integral <integral@member.fsf.org>
pkgname=qefientrymanager-git
_pkgname=${pkgname%-git}
_srcname=QEFIEntryManager
pkgver=0.4.0.r2.ge35f78a
pkgrel=1
epoch=1
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=('GPL-3.0-or-later')
depends=('qt6-base' 'qt6-wayland' 'efivar' 'hicolor-icon-theme')
makedepends=('git' 'cmake' 'qt6-tools' 'clang')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=(
"git+${url}.git"
"git+https://github.com/Inokinoki/qefivar.git"
)
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd "${_srcname}/"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//;s/_/./'
}
prepare() {
cd "${_srcname}/"
git submodule init
git config submodule.qefivar.url "${srcdir}/qefivar/"
git -c protocol.file.allow=always submodule update
mkdir -p build
}
build() {
cd "${_srcname}/build/"
cmake -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr ..
cmake --build .
}
package() {
cd "${_srcname}/"
DESTDIR="${pkgdir}" cmake --install build
# License
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}/"
# Documentation
install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${_pkgname}/"
}
|