blob: b442add340f42c272c44f1f43df4393dc17b6fcd (
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
|
# Maintainer: Maciej Szeptuch <neverous at neverous dot info>
pkgbase=efibooteditor
pkgname=(efibooteditor efibooteditor-qt5)
pkgver=1.5.1
pkgrel=1
arch=(x86_64)
pkgdesc='Boot Editor for (U)EFI based systems.'
url='https://github.com/Neverous/efibooteditor'
license=(LGPL3)
depends=(efivar zlib)
makedepends=(cmake qt6-tools qt5-base qt5-tools)
source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/Neverous/efibooteditor/archive/refs/tags/v${pkgver}.tar.gz)
md5sums=('695846c15abdf2114561e585215d06a2')
build() {
cd ${pkgbase}-${pkgver}
export BUILD_VERSION=${pkgver}-aur.${pkgrel}
# Build Qt6 version
cmake -B build-qt6 . \
-DCMAKE_INSTALL_PREFIX=/usr \
-DQT_VERSION_MAJOR=6
cmake --build build-qt6 --config Release
# Build Qt5 version
cmake -B build-qt5 . \
-DCMAKE_INSTALL_PREFIX=/usr \
-DQT_VERSION_MAJOR=5
cmake --build build-qt5 --config Release
}
package_efibooteditor() {
pkgdesc='Boot Editor for (U)EFI based systems.'
depends=(efivar qt6-base)
cd ${pkgbase}-${pkgver}
DESTDIR="${pkgdir}" cmake --install build-qt6
install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgbase}/LICENSE
}
package_efibooteditor-qt5() {
pkgdesc='Boot Editor for (U)EFI based systems (Qt5 version).'
depends=(efivar qt5-base)
conflicts=(efibooteditor)
provides=(efibooteditor)
cd ${pkgbase}-${pkgver}
DESTDIR="${pkgdir}" cmake --install build-qt5
install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgbase}/LICENSE
}
|