diff options
author | xiota | 2023-12-09 18:09:05 -0800 |
---|---|---|
committer | xiota | 2023-12-09 18:10:12 -0800 |
commit | 5a0b40538beaf420dd231bfa8e7fe5a5565aa6e0 (patch) | |
tree | 1b78aa262271cb51603360ee2d05a72bf43fb2aa /PKGBUILD | |
parent | e7577a68adb968f801ea2fffd96af603fae695a8 (diff) | |
download | aur-melonds-git.tar.gz |
update license, build, package
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -2,14 +2,14 @@ pkgname=melonds-git _gitname=melonDS -pkgver=0.9.5.r2210.544fefa2 +pkgver=0.9.5.r2238.082310d5 pkgdesc='DS emulator, sorta. also 1st quality melon.' pkgrel=1 arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') url="http://melonds.kuribo64.net/" -license=('GPL3') +license=('GPL-3.0-or-later') makedepends=('git' 'cmake' 'pkg-config' 'extra-cmake-modules') -depends=('sdl2' 'libslirp' 'qt5-base' qt5-multimedia 'libepoxy') +depends=('sdl2' 'libslirp' 'qt5-base' 'qt5-multimedia' 'libepoxy') source=("${_gitname}::git+https://github.com/melonDS-emu/${_gitname}.git") provides=('melonds') conflicts=('melonds') @@ -22,24 +22,24 @@ pkgver() printf "%s.r%s.%s" "$(git describe --abbrev=0 --tags)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } - build() { - if [[ -d build ]]; then - rm -rf build - fi - mkdir build - cd build - cmake ../${_gitname} \ - -DCMAKE_BUILD_TYPE=Release \ + local _cmake_options=( + -B build + -S "$_gitname" + -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX='/usr' - make VERBOSE=ON + -DVERBOSE=ON + -Wno-dev + ) + + cmake "${_cmake_options[@]}" + cmake --build build } package() { - cd build - make DESTDIR="${pkgdir}" install + DESTDIR="${pkgdir:?}" cmake --install build } # vim: ts=2 sw=2 et: |