summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 33 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 482b64774c1..9eb98e0da6f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,34 @@
# Maintainer: Nadia Holmquist Pedersen <nadia@nhp.sh>
_pkgbase=nanoboyadvance
-pkgname=${_pkgbase}-git
+pkgbase="${_pkgbase}-git"
+pkgname=(${_pkgbase}-git ${_pkgbase}-qt-git)
pkgdesc="Accuracy-focused Game Boy Advance emulator."
-pkgver=1.3.r57.g6299f4b
+pkgver=1.4.r4.g9b08775e
pkgrel=1
arch=(x86_64)
url="https://github.com/fleroviux/NanoboyAdvance"
license=(GPL3)
-depends=(sdl glew)
-makedepends=(cmake make gcc)
+makedepends=(cmake make gcc imagemagick)
+
+_vendor="com.github.nba-emu"
+_identifier="${_vendor}.NanoBoyAdvance"
+
source=(
"git+https://github.com/fleroviux/NanoBoyAdvance.git"
"git+https://github.com/fmtlib/fmt.git"
"git+https://github.com/ToruNiina/toml11.git"
NanoBoyAdvance.sh
+ NanoBoyAdvance-Qt.sh
+ NanoBoyAdvance.desktop
)
+
md5sums=('SKIP'
'SKIP'
'SKIP'
- '3a61b7b4cbece463119ea84a54293ba4')
+ '66a11acbf54f009b0d54e208e9b71aa2'
+ '5ba7183c24bdf63a9c4638f92d26b04b'
+ '4f1b46e13ebab49bd45e8c49e1bf7685')
pkgver() {
cd NanoBoyAdvance
@@ -34,15 +43,16 @@ prepare() {
git submodule update
}
-build(){
+build() {
cd "$srcdir/NanoBoyAdvance"
cmake -B build -DCMAKE_BUILD_TYPE=Release
make -C build
}
-package(){
+package_nanoboyadvance-git() {
cd "$srcdir/NanoBoyAdvance"
- install -Dm755 build/src/platform/sdl/NanoBoyAdvance -t "${pkgdir}/usr/lib"
+
+ install -Dm755 build/bin/sdl/NanoBoyAdvance -t "${pkgdir}/usr/lib"
install -Dm755 "${srcdir}/../NanoBoyAdvance.sh" "${pkgdir}/usr/bin/NanoBoyAdvance"
mkdir -p "${pkgdir}/usr/share/NanoBoyAdvance"
@@ -50,3 +60,18 @@ package(){
rm "${pkgdir}/usr/share/NanoBoyAdvance/shader.cmake"
sed -i -E 's@^shader_(.s) = "(.*)"$@shader_\1 = "/usr/share/NanoBoyAdvance/\2"@' "${pkgdir}/usr/share/NanoBoyAdvance/config.toml"
}
+
+package_nanoboyadvance-qt-git() {
+ cd "$srcdir/NanoBoyAdvance"
+
+ install -Dm755 build/bin/qt/NanoBoyAdvance "${pkgdir}/usr/lib/NanoBoyAdvance-Qt"
+ install -Dm755 "${srcdir}/../NanoBoyAdvance-Qt.sh" "${pkgdir}/usr/bin/NanoBoyAdvance-Qt"
+ install -Dm644 "${srcdir}/NanoBoyAdvance.desktop" "${pkgdir}/usr/share/applications/${_identifier}.desktop"
+
+ convert "${srcdir}/NanoBoyAdvance/src/platform/qt/rc/app.ico" icon.png
+
+ for icon in icon-*.png; do
+ size=$(identify -format "%[fx:w]x%[fx:h]" "$icon")
+ install -Dm644 "$icon" "${pkgdir}/usr/share/icons/hicolor/${size}/apps/${_identifier}.png"
+ done
+}