Package Details: nats-server-bin 2.10.16-1

Git Clone URL: https://aur.archlinux.org/nats-server-bin.git (read-only, click to copy)
Package Base: nats-server-bin
Description: Simple, secure and high performance open source messaging system
Upstream URL: https://nats.io
Licenses: Apache
Conflicts: nats-server
Provides: nats-server
Submitter: francis36012
Maintainer: francis36012
Last Packager: francis36012
Votes: 6
Popularity: 0.003417
First Submitted: 2023-06-03 14:56 (UTC)
Last Updated: 2024-05-26 14:10 (UTC)

Latest Comments

francis36012 commented on 2023-07-01 13:00 (UTC)

Thanks for the suggestion @leuko. "nats-server" is now in the provides list.

leuko commented on 2023-07-01 07:31 (UTC)

Dear Francis, would you mind adding provides=("$_pkgname=$pkgver") to your PKGBUILD?

https://wiki.archlinux.org/title/PKGBUILD#provides

Background: I have a package that has a nats-server dependency.

francis36012 commented on 2023-05-31 13:34 (UTC) (edited on 2023-05-31 13:37 (UTC) by francis36012)

Thanks for the heads up @solopasha, I will create a new package with an updated name and merge it with this one

solopasha commented on 2023-05-27 19:10 (UTC)

Packages that use prebuilt deliverables, when the sources are available, must use the -bin suffix. https://wiki.archlinux.org/title/AUR_submission_guidelines#Rules_of_submission

archie2020 commented on 2022-05-21 03:22 (UTC)

add armv7h support

archie2020 commented on 2022-05-21 03:21 (UTC)

# Maintainer: Francis Agyapong <francisagyapong2 at gmail dot com>

pkgname="nats-server"
pkgdesc="Simple, secure and high performance open source messaging system"
pkgver=2.8.2
pkgrel=1
provides=("${pkgname}")
arch=("x86_64" "armv7h")
url="https://nats.io"
license=("Apache")
source_x86_64=(
    "https://github.com/nats-io/nats-server/releases/download/v$pkgver/nats-server-v$pkgver-linux-amd64.zip"
    "local://nats-server.service"
)

source_armv7h=(
    "https://github.com/nats-io/nats-server/releases/download/v$pkgver/nats-server-v$pkgver-linux-arm7.zip"
    "local://nats-server.service"
)

sha256sums_x86_64=(
    "bc485dc4fcf1edf35f14fe14b114f8c96345b388aada3d655c3ad1f929126d5c"
    "3dcf497f31d8502712773d63801e6aa33416851fcf5e58a504a72c7d105960ce"
)
sha256sums_armv7h=(
    "5f8f2d7fd211001dc680a941a6acebc8f5c043d862fde34b416b880dee96582f"
    "3dcf497f31d8502712773d63801e6aa33416851fcf5e58a504a72c7d105960ce"
)

package() {
    local suffix="amd64"
    [ ${CARCH} = "armv7h" ] && suffix="arm7"
    local actual_srcdir="$srcdir/$pkgname-v$pkgver-linux-${suffix}"

    install -Dm 755 "${actual_srcdir}/nats-server" -t "${pkgdir}/usr/bin"
    install -Dm 644 "${srcdir}/nats-server.service" -t "${pkgdir}/usr/lib/systemd/system"
    install -Dm 644 "${actual_srcdir}/README.md" -t "${pkgdir}/usr/share/doc/${pkgname}"
}

rageltman commented on 2020-09-26 18:58 (UTC)

The required service file is not present:

[2020-09-26T18:20:04.760Z] + sudo /usr/bin/makechrootpkg -c -r /mnt/aur/build -l nats-server -- --skippgpcheck --nocheck
[2020-09-26T18:20:05.925Z] ==> Synchronizing chroot copy [/mnt/aur/build/root] -> [nats-server]...done
[2020-09-26T18:20:10.052Z]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[2020-09-26T18:20:10.056Z]                                  Dload  Upload   Total   Spent    Left  Speed
[2020-09-26T18:20:10.311Z] 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   656  100   656    0     0   3813      0 --:--:-- --:--:-- --:--:--  3813
[2020-09-26T18:20:10.565Z] 
100 3989k  100 3989k    0     0  7415k      0 --:--:-- --:--:-- --:--:-- 7415k
[2020-09-26T18:20:10.568Z] ==> WARNING: Skipping verification of source file PGP signatures.
[2020-09-26T18:20:10.822Z]     nats-server-v2.1.8-linux-amd64.zip ... Passed
[2020-09-26T18:20:37.228Z] ==> ERROR: Build failed, check /mnt/aur/build/nats-server/build
[2020-09-26T18:20:37.236Z] ==> Making package: nats-server 2.1.8-1 (Sat Sep 26 18:20:09 2020)
[2020-09-26T18:20:37.239Z] ==> Retrieving sources...
[2020-09-26T18:20:37.241Z]   -> Downloading nats-server-v2.1.8-linux-amd64.zip...
[2020-09-26T18:20:37.245Z] ==> Validating source files with sha256sums...
[2020-09-26T18:20:37.247Z] ==> Making package: nats-server 2.1.8-1 (Sat 26 Sep 2020 06:20:26 PM UTC)
[2020-09-26T18:20:37.250Z] ==> Checking runtime dependencies...
[2020-09-26T18:20:37.253Z] ==> Checking buildtime dependencies...
[2020-09-26T18:20:37.256Z] ==> Retrieving sources...
[2020-09-26T18:20:37.259Z]   -> Found nats-server-v2.1.8-linux-amd64.zip
[2020-09-26T18:20:37.262Z] ==> WARNING: Skipping all source file integrity checks.
[2020-09-26T18:20:37.265Z] ==> Extracting sources...
[2020-09-26T18:20:37.268Z]   -> Extracting nats-server-v2.1.8-linux-amd64.zip with bsdtar
[2020-09-26T18:20:37.270Z] ==> Entering fakeroot environment...
[2020-09-26T18:20:37.274Z] ==> Starting package()...
[2020-09-26T18:20:37.277Z] install: cannot stat '../nats-server.service': No such file or directory
[2020-09-26T18:20:37.280Z] ==> ERROR: A failure occurred in package().
[2020-09-26T18:20:37.283Z]     Aborting...
script returned exit code 255