libmmd-cpp

LOW
maintainer haturatu 0 votes scanned 2026-11-01 20:01:18.389276
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: haturatu <taro@eyes4you.org>
2# The AUR package name is libmmd-cpp because the plain libmmd name is taken by
3# an unrelated, deleted package. The installed library, headers and CMake
4# package remain libmmd.
5pkgname=libmmd-cpp
6_basename=libmmd
7pkgver=0.3.2
8pkgrel=1
9pkgdesc="C++20 library for MMD PMX, VMD, animation and physics"
10arch=('x86_64')
11url="https://github.com/haturatu/libmmd"
12license=('MIT')
13depends=('bullet' 'glibc' 'libstdc++' 'libgcc')
14makedepends=('cmake' 'ninja')
15source=("${_basename}-${pkgver}.tar.gz::${url}/releases/download/v${pkgver}/${_basename}-${pkgver}.tar.gz")
16sha256sums=('c08badc119c274396335af11cf44858e328580a36b35be26566c5b9770e55500')
17
18build() {
19 cmake -S "${_basename}-${pkgver}" -B build -G Ninja \
20 -DCMAKE_BUILD_TYPE=None \
21 -DCMAKE_INSTALL_PREFIX=/usr \
22 -DCMAKE_INSTALL_LIBDIR=lib \
23 -DBUILD_SHARED_LIBS=ON \
24 -DBUILD_TESTING=ON \
25 -DLIBMMD_BUILD_TESTS=ON \
26 -DLIBMMD_INSTALL=ON \
27 -DLIBMMD_ENABLE_PHYSICS=ON \
28 -DLIBMMD_ENABLE_BULLET=ON \
29 -DLIBMMD_FETCH_DEPENDENCIES=OFF
30 cmake --build build
31}
32
33check() {
34 ctest --test-dir build --output-on-failure
35 # Also exercise the installed CMake package and the actual Bullet backend.
36 DESTDIR="${srcdir}/stage" cmake --install build
37 cmake -S "${_basename}-${pkgver}/tests/package-consumer" -B consumer -G Ninja \
38 -DCMAKE_BUILD_TYPE=None \
39 -DCMAKE_PREFIX_PATH="${srcdir}/stage/usr" \
40 -DLIBMMD_CONSUMER_WITH_BULLET=ON
41 cmake --build consumer
42 LD_LIBRARY_PATH="${srcdir}/stage/usr/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" \
43 ctest --test-dir consumer --output-on-failure
44}
45
46package() {
47 DESTDIR="${pkgdir}" cmake --install build
48}
49

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 20:01:18 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion