blob: 72ba101e5725d3910195b2f80cac331957eb7517 (
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
57
58
59
60
61
62
63
64
65
|
# Maintainer: Zion Nimchuk <zionnimchuk@gmail.com>
## links
# http://melonds.kuribo64.net/
# https://github.com/melonDS-emu/melonDS
: ${_use_clang=true}
pkgname=melonds-git
_gitname=melonDS
pkgver=1.0rc.r2539.d6d820c0
pkgrel=1
pkgdesc='DS emulator, sorta'
url="https://github.com/melonDS-emu/melonDS"
license=('GPL-3.0-or-later')
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
depends=('enet' 'libarchive' 'libepoxy' 'libslirp' 'qt6-base' 'qt6-multimedia' 'qt6-svg' 'sdl2')
makedepends=('cmake' 'extra-cmake-modules' 'git' 'ninja' 'pkg-config')
if [[ "${_use_clang::1}" == "t" ]]; then
makedepends+=('clang' 'lld')
else
options=('!lto')
fi
provides=('melonds')
conflicts=('melonds')
source=("${_gitname}::git+https://github.com/melonDS-emu/melonDS.git")
sha256sums=('SKIP')
pkgver() {
cd "${_gitname}"
printf "%s.r%s.%s" "$(git describe --abbrev=0 --tags)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
local _ldflags=(${LDFLAGS})
if [[ "${_use_clang::1}" == "t" ]]; then
export CC=clang
export CXX=clang++
export LDFLAGS="${_ldflags[@]//*fuse-ld*/} -fuse-ld=lld"
fi
local _cmake_options=(
-B build
-S "$_gitname"
-G Ninja
-DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX='/usr'
-DUSE_QT6=ON
-DUSE_SYSTEM_LIBSLIRP=ON
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
# vim: ts=2 sw=2 et:
|