-
Notifications
You must be signed in to change notification settings - Fork 50
/
PKGBUILD
45 lines (40 loc) · 1.37 KB
/
PKGBUILD
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
# Maintainer: Jon LoBue <jlobue10@gmail.com>
_pkgname=SteamDeck_rEFInd
pkgname=${_pkgname}
pkgver=1.3.3
pkgrel=1
pkgdesc='SteamDeck rEFInd installer and customization GUI'
arch=('x86_64')
url="https://github.com/jlobue10/SteamDeck_rEFInd"
license=('MIT')
depends=()
makedepends=('cmake' 'gcc' 'glibc' 'make' 'qt5-base' 'qt5-tools')
source=(
"SteamDeck_rEFInd::git+https://github.com/jlobue10/SteamDeck_rEFInd.git"
)
md5sums=(
'SKIP'
)
prepare() {
cd $_pkgname
cd GUI/src
mkdir -p build
}
build() {
cd $_pkgname/GUI/src/build
cmake ..
make
}
package() {
install -Dm755 "${srcdir}/$_pkgname/GUI/src/build/SteamDeck_rEFInd" "${pkgdir}/usr/bin/SteamDeck_rEFInd"
install -Dm777 "${srcdir}/$_pkgname/SteamDeck_rEFInd.desktop" "${pkgdir}/usr/share/applications/SteamDeck_rEFInd.desktop"
install -Dm644 "${srcdir}/$_pkgname/SteamDeck_rEFInd.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/SteamDeck_rEFInd.png"
install -Dm644 "${srcdir}/$_pkgname/systemd/rEFInd_bg_randomizer.service" "${pkgdir}/etc/systemd/system/rEFInd_bg_randomizer.service"
install -Dm644 "${srcdir}/$_pkgname/systemd/bootnext-refind.service" "${pkgdir}/etc/systemd/system/bootnext-refind.service"
}
post_install() {
systemctl daemon-reload
# Start and enable the bootnext-refind service
systemctl start bootnext-refind.service
systemctl enable bootnext-refind.service
}