* add nanomsg

This commit is contained in:
Alexander Baldeck 2024-11-25 08:52:52 +01:00
parent 43196a6be9
commit ae4e95d469
3 changed files with 50 additions and 0 deletions

13
nanomsg/.SRCINFO Normal file
View File

@ -0,0 +1,13 @@
pkgbase = nanomsg
pkgdesc = Simple high-performance implementation of several "scalability protocols"
pkgver = 1.2
pkgrel = 2
url = https://nanomsg.org/
arch = x86_64
license = MIT
makedepends = cmake
depends = glibc
source = nanomsg-1.2.tar.gz::https://github.com/nanomsg/nanomsg/archive/1.2.tar.gz
sha256sums = 6ef7282e833df6a364f3617692ef21e59d5c4878acea4f2d7d36e21c8858de67
pkgname = nanomsg

3
nanomsg/.nvchecker.toml Normal file
View File

@ -0,0 +1,3 @@
[nanomsg]
source = "git"
git = "https://github.com/nanomsg/nanomsg.git"

34
nanomsg/PKGBUILD Normal file
View File

@ -0,0 +1,34 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
# Contributor: KokaKiwi <admin@kokaelkiwi.eu>
# Contributor: James Bulmer <nekinie@gmail.com>
pkgname=nanomsg
pkgver=1.2
pkgrel=2
pkgdesc='Simple high-performance implementation of several "scalability protocols"'
url='https://nanomsg.org/'
license=(MIT)
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
depends=(glibc)
makedepends=(cmake)
source=(nanomsg-$pkgver.tar.gz::https://github.com/nanomsg/nanomsg/archive/$pkgver.tar.gz)
sha256sums=('6ef7282e833df6a364f3617692ef21e59d5c4878acea4f2d7d36e21c8858de67')
build() {
cd nanomsg-$pkgver
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib .
make
}
check() {
cd nanomsg-$pkgver
ctest
}
package() {
cd nanomsg-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}