Initial upload: mbelib-neo-git

This commit is contained in:
arancormonk 2025-12-09 17:14:10 -06:00
commit f67959b820
No known key found for this signature in database
GPG key ID: 5C77FAD44C3E67A7
2 changed files with 57 additions and 0 deletions

19
.SRCINFO Normal file
View file

@ -0,0 +1,19 @@
pkgbase = mbelib-neo-git
pkgdesc = P25 Phase 1 and ProVoice IMBE and Half-rate AMBE vocoder library (modernized fork)
pkgver = r14.96726fb
pkgrel = 1
url = https://github.com/arancormonk/mbelib-neo
arch = x86_64
arch = aarch64
license = GPL-2.0-or-later
makedepends = cmake
makedepends = git
depends = glibc
provides = mbelib-neo
provides = mbelib
conflicts = mbelib-neo
conflicts = mbelib
source = mbelib-neo-git::git+https://github.com/arancormonk/mbelib-neo.git
sha256sums = SKIP
pkgname = mbelib-neo-git

38
PKGBUILD Normal file
View file

@ -0,0 +1,38 @@
pkgname=mbelib-neo-git
pkgver=r14.96726fb
pkgrel=1
pkgdesc="P25 Phase 1 and ProVoice IMBE and Half-rate AMBE vocoder library (modernized fork)"
arch=('x86_64' 'aarch64')
url="https://github.com/arancormonk/mbelib-neo"
license=('GPL-2.0-or-later')
depends=('glibc')
makedepends=('cmake' 'git')
provides=('mbelib-neo' 'mbelib')
conflicts=('mbelib-neo' 'mbelib')
source=("$pkgname::git+https://github.com/arancormonk/mbelib-neo.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cmake -B build -S "$pkgname" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMBELIB_BUILD_TESTS=OFF \
-DMBELIB_BUILD_EXAMPLES=OFF
cmake --build build
}
check() {
cmake -B build -S "$pkgname" \
-DMBELIB_BUILD_TESTS=ON
cmake --build build
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}