blob: bea24691340a97888f7bfed360ada458f76072ff (
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
|
# Maintainer: Zion Nimchuk <zionnimchuk@gmail.com>
## links
# http://melonds.kuribo64.net/
# https://github.com/melonDS-emu/melonDS
pkgname=melonds-git
_gitname=melonDS
pkgver=0.9.5.r2404.5b986d31
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')
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 _cmake_options=(
-B build
-S "$_gitname"
-G Ninja
-DCMAKE_BUILD_TYPE=Release
-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:
|