Package Details: np2kai-git 0.86.rev.22.216.g36df8cd-1

Git Clone URL: https://aur.archlinux.org/np2kai-git.git (read-only, click to copy)
Package Base: np2kai-git
Description: Neko Project II Kai, a PC-9801 emulator. (GIT version)
Upstream URL: http://domisan.sakura.ne.jp/article/np2kai/np2kai.html
Licenses: MIT
Conflicts: np2kai
Provides: np2kai
Submitter: sl1pkn07
Maintainer: sl1pkn07
Last Packager: sl1pkn07
Votes: 3
Popularity: 0.003207
First Submitted: 2018-06-30 02:56 (UTC)
Last Updated: 2026-03-09 17:17 (UTC)

Required by (0)

Sources (4)

Latest Comments

1 2 Next › Last »

makinori commented on 2026-04-16 19:52 (UTC)

diff --git a/PKGBUILD b/PKGBUILD
index c7631e8..d0240f2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -29,19 +29,8 @@ makedepends=(
 )
 conflicts=('np2kai')
 provides=('np2kai')
-source=(
-  'git+https://github.com/AZO234/NP2kai.git'
-  'https://github.com/AZO234/NP2kai/commit/3d23274eefcf9c494358662539c29eebd8996cbf.patch'
-  'https://github.com/AZO234/NP2kai/commit/697fac371b414212526aae25e7c9774f167f4ef3.patch'
-  'https://github.com/amuramatsu/NP2kai/commit/ad781a4db34bc2364a377cc7bd90b3b99fea1459.patch'
-  )
-sha256sums=(
-  'SKIP'
-  'SKIP'
-  'SKIP'
-  'SKIP'
-)
-options=('debug')
+source=('git+https://github.com/AZO234/NP2kai.git')
+sha256sums=('SKIP')

 pkgver() {
   cd NP2kai
@@ -51,15 +40,12 @@ pkgver() {

 prepare() {
   cd NP2kai
-
-  patch -p1 -i "${srcdir}/3d23274eefcf9c494358662539c29eebd8996cbf.patch"
-  patch -p1 -i "${srcdir}/697fac371b414212526aae25e7c9774f167f4ef3.patch"
-  patch -p1 -i "${srcdir}/ad781a4db34bc2364a377cc7bd90b3b99fea1459.patch"
   sed '/set(COMMON_C_CXX_FLAGS/s/^/#/g' -i CMakeLists.txt
   sed 's|target_include_directories(NP2kai_SDL2_base INTERFACE|& ${SDL_INCLUDE_DIRS} ${SDL_TTF_INCLUDE_DIRS}|g' -i CMakeLists.txt
   sed 's|SDL2_ttf/SDL_ttf.h|SDL2/SDL_ttf.h|g' -i sdl/fontmng.c -i x/fontmng.c
   sed '1i#include <SDL2/SDL_ttf.h>' -i sdl/fontmng.c
   sed 's|#include <SDL3/SDL.h>|#include <SDL2/SDL.h>|g' -i compiler_base.h
+  sed 's|MID_DBSS|MID_EN_DBSS|g' -i embed/menubase/menusys.c
 }

 build() {
@@ -72,7 +58,7 @@ build() {
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_MANDIR=/usr/share/man/man1 \
-    -DBUILD_X=ON \
+    -DBUILD_X=OFF \
     -DBUILD_SDL=ON \
     -DBUILD_I286=ON \
     -DBUILD_HAXM=ON \

AreaOfZero commented on 2026-02-16 02:15 (UTC)

There's currently an error that occurs in the prepare() step:

==> Making package: np2kai-git 0.86.rev.22.169.gda21965-1 (Sun 15 Feb 2026 09:02:13 PM EST)
==> Retrieving sources...
  -> Cloning NP2kai git repo...
Cloning into bare repository '/home/osaka/.cache/paru/clone/np2kai-git/NP2kai'...
remote: Enumerating objects: 15342, done.
remote: Counting objects: 100% (569/569), done.
remote: Compressing objects: 100% (285/285), done.
remote: Total 15342 (delta 359), reused 284 (delta 284), pack-reused 14773 (from 4)
Receiving objects: 100% (15342/15342), 11.75 MiB | 854.00 KiB/s, done.
Resolving deltas: 100% (10630/10630), done.
  -> Cloning sdl2-cmake-modules git repo...
Cloning into bare repository '/home/osaka/.cache/paru/clone/np2kai-git/sdl2-cmake-modules'...
remote: Enumerating objects: 160, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 160 (delta 0), reused 0 (delta 0), pack-reused 154 (from 1)
Receiving objects: 100% (160/160), 44.01 KiB | 1.22 MiB/s, done.
Resolving deltas: 100% (96/96), done.
==> Validating source files with sha256sums...
    NP2kai ... Skipped
    sdl2-cmake-modules ... Skipped
==> Making package: np2kai-git 0.86.rev.22.169.gda21965-1 (Sun 15 Feb 2026 09:02:28 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating NP2kai git repo...
  -> Updating sdl2-cmake-modules git repo...
==> Validating source files with sha256sums...
    NP2kai ... Skipped
    sdl2-cmake-modules ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of NP2kai git repo...
Cloning into 'NP2kai'...
done.
  -> Creating working copy of sdl2-cmake-modules git repo...
Cloning into 'sdl2-cmake-modules'...
done.
==> Starting prepare()...
error: pathspec 'cmake/sdl2-cmake-modules' did not match any file(s) known to git
==> ERROR: A failure occurred in prepare().
    Aborting...
error: failed to build 'np2kai-git-0.86.rev.22.169.gda21965-1': 
error: packages failed to build: np2kai-git-0.86.rev.22.169.gda21965-1

sl1pkn07 commented on 2025-04-06 14:06 (UTC)

for me working without ninja in glorious 48 threads... but, i think not hurt if it's added :)

greetings

yataro commented on 2025-04-03 00:49 (UTC) (edited on 2025-04-03 00:51 (UTC) by yataro)

no, that's not the case

btw, the patch addresses the build failure, ninja is a bonus :)

sl1pkn07 commented on 2025-04-02 17:50 (UTC)

maybe because you not active and set MAKEFLAGS un your makepkg.conf

yataro commented on 2025-04-02 10:43 (UTC)

diff --git a/PKGBUILD b/PKGBUILD
index 51abf0e..dbf762c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Gustavo Alvarez Lopez <sl1pkn07@gmail.com>

 pkgname=np2kai-git
-pkgver=0.86.rev.22.145.g606fafa
+pkgver=0.86.rev.22.169.gda21965
 pkgrel=1
 pkgdesc="Neko Project II Kai, a PC-9801 emulator. (GIT version)"
 arch=('x86_64')
@@ -13,6 +13,7 @@ depends=('gtk2'
          )
 makedepends=('cmake'
              'nasm'
+             'ninja'
              )
 conflicts=('np2kai')
 provides=('np2kai')
@@ -35,14 +36,20 @@ prepare() {
     git config submodule.cmake/sdl2-cmake-modules.url "${srcdir}/sdl2-cmake-modules"
     git -c protocol.file.allow=always submodule update --init \
       cmake/sdl2-cmake-modules
+
+  sed -i CMakeLists.txt -e 's/set(CMAKE_C_FLAGS "/\0${CMAKE_C_FLAGS} /'
 }

 build() {
   cd NP2kai

+  export NP2KAI_VERSION="$pkgver"
+
   cmake -S . -B build \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_C_FLAGS="-Wno-incompatible-pointer-types -Wno-implicit-int" \
+    -G Ninja \
     -DCMAKE_INSTALL_MANDIR=/usr/share/man/man1 \
     -DBUILD_X=ON \
     -DBUILD_SDL=ON \

make uses only one thread, didn't bother to figure out why, just replaced it with ninja

zomgugoff commented on 2025-02-21 07:11 (UTC) (edited on 2025-02-21 07:11 (UTC) by zomgugoff)

Build is failing with a message about a missing Git tag:

-- Found Git: /usr/bin/git (found version "2.48.1")
CMake Error at CMakeLists.txt:52 (message):
Need a Git tag to build NP2kai.

heyrict commented on 2023-10-20 03:46 (UTC)

@navidmafi This seems a bug introduced in recent revisions since rev81 (c2af9e8) rather than a packaging issue, and you may want to report to the author in github instead of here. Previous versions compiles without issues.

A quick fix is to append git checkout 30d4b69 in prepare() {...}.

navidmafi commented on 2022-06-15 15:43 (UTC) (edited on 2022-06-15 15:43 (UTC) by navidmafi)

The build fails with

[ 28%] Building C object CMakeFiles/sdlnp21kai_HAXM.dir/i386hax/haxcore.c.o
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘make_vm_str’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:75:9: warning: implicit declaration of function ‘_stprintf’; did you mean ‘vswprintf’? [-Wimplicit-function-declaration]
   75 |         _stprintf(buf, OEMTEXT("\\\\.\\hax_vm%02d"), vm_id);
      |         ^~~~~~~~~
      |         vswprintf
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘i386hax_check’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:104:32: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  104 |                 np2hax.hDevice = NULL;
      |                                ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:153:9: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
  153 |         close(np2hax.hDevice);
      |         ^~~~~
      |         pclose
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:155:24: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  155 |         np2hax.hDevice = NULL;
      |                        ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:172:24: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  172 |         np2hax.hDevice = NULL;
      |                        ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘i386hax_initialize’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:204:9: warning: implicit declaration of function ‘CloseHandle’ [-Wimplicit-function-declaration]
  204 |         CloseHandle(np2hax.hDevice);
      |         ^~~~~~~~~~~
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:205:24: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  205 |         np2hax.hDevice = NULL;
      |                        ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘i386hax_createVM’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:363:28: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  363 |         np2hax.hVCPUDevice = NULL;
      |                            ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:370:26: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  370 |         np2hax.hVMDevice = NULL;
      |                          ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘i386hax_vm_exec’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1288:49: warning: implicit declaration of function ‘GetTickCounter_Clock’ [-Wimplicit-function-declaration]
 1288 |                         np2haxcore.clockcount = GetTickCounter_Clock();
      |                                                 ^~~~~~~~~~~~~~~~~~~~
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1290:68: error: request for member ‘QuadPart’ in something not a structure or union
 1290 |                                 remclkdiff = (np2haxcore.clockcount.QuadPart - np2haxcore.lastclock.QuadPart) * pccore.realclock / np2haxcore.clockpersec.QuadPart;
      |                                                                    ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1290:100: error: request for member ‘QuadPart’ in something not a structure or union
 1290 |                                 remclkdiff = (np2haxcore.clockcount.QuadPart - np2haxcore.lastclock.QuadPart) * pccore.realclock / np2haxcore.clockpersec.QuadPart;
      |                                                                                                    ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1290:154: error: request for member ‘QuadPart’ in something not a structure or union
 1290 |                  remclkdiff = (np2haxcore.clockcount.QuadPart - np2haxcore.lastclock.QuadPart) * pccore.realclock / np2haxcore.clockpersec.QuadPart;
      |                                                                                                                                           ^

/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘i386hax_disposeVM’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1343:28: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
 1343 |         np2hax.hVCPUDevice = NULL;
      |                            ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1349:26: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
 1349 |         np2hax.hVMDevice = NULL;
      |                          ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘i386hax_deinitialize’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1367:24: warning: assignment to ‘HANDLE’ {aka ‘int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
 1367 |         np2hax.hDevice = NULL;
      |                        ^
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c: In function ‘i386hax_vm_setvga256linearmemory’:
/home/navid/.cache/yay/np2kai-git/src/np2kai/i386hax/haxcore.c:1616:17: warning: assignment to ‘UINT64’ {aka ‘long unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
 1616 |         info.va = NULL;
      |                 ^
make[2]: *** [CMakeFiles/sdlnp21kai_HAXM.dir/build.make:90: CMakeFiles/sdlnp21kai_HAXM.dir/i386hax/haxcore.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:229: CMakeFiles/sdlnp21kai_HAXM.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: np2kai-git

adgenet commented on 2020-06-05 20:09 (UTC)

I'm seeing the following error when trying to build this. Perhaps the build process has changed upstream?

==> Starting prepare()... /home/adgenet/np2kai-git/PKGBUILD: line 27: cd: np2kai/x11: No such file or directory ==> ERROR: A failure occurred in prepare(). Aborting...