mirror of
https://github.com/jlobue10/SteamDeck_rEFInd.git
synced 2024-11-21 00:51:29 +08:00
46 lines
1.4 KiB
Bash
46 lines
1.4 KiB
Bash
# 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
|
|
}
|