# Maintainer: Kevin Wheelans pkgname="pass-it-on-server-bin" pkgver=0.15.0 pkgrel=1 pkgdesc="Pass-it-on server component binary only" arch=("x86_64" "aarch64") license=("MIT") url="https://github.com/kwheelans/pass-it-on" provides=("pass-it-on-server") conflicts=("pass-it-on-server") source=("$pkgname-source-$pkgver.tar.gz::https://github.com/kwheelans/pass-it-on/archive/refs/tags/v$pkgver.tar.gz") source_x86_64=("$pkgname-$pkgver.tar.gz::https://github.com/kwheelans/pass-it-on/releases/download/v$pkgver/pass-it-on-server-v$pkgver-x86_64-unknown-linux-gnu.tar.gz") source_aarch64=("$pkgname-$pkgver.tar.gz::https://github.com/kwheelans/pass-it-on/releases/download/v$pkgver/pass-it-on-server-v$pkgver-aarch64-unknown-linux-gnu.tar.gz") b2sums=('d1eff7bf2437c31d3674c82ac6a9264aa486b147a74dd1360c710f08dd19e91561d58623322c57a2d7a3178d2ffe2da83737d962c548b4b53eb468ef2616fdf4') b2sums_x86_64=('82e31bf1343ec454e70e8f2c0f3e7056afbc735cada587da731da3a64ccc3bb36f98ddc1504a8042f5c55b707e24ed3ee2d3c3b10b28b8cec0fc4425851320e7') b2sums_aarch64=('36dcd1ac7a715141748a4cdd41b9552414ac70616e33ca3f8042da42ffb922b2b79688caaaa17f3084b63a31a88849c38b41cb1f613524aa0b0cdc84c923e166') package() { _pkgname="pass-it-on-server" _pkgbin="pass-it-on-server-v$pkgver-$CARCH-unknown-linux-gnu" _pkgsrc="pass-it-on-$pkgver" install -Dm0755 "$srcdir/$_pkgbin/$_pkgname" "$pkgdir/usr/bin/$_pkgname" install -Dm0644 "$srcdir/$_pkgsrc/resources/systemd/$_pkgname.service" "$pkgdir/usr/lib/systemd/system/$_pkgname.service" install -Dm0644 "$srcdir/$_pkgsrc/resources/configuration/server_example.toml" "$pkgdir/etc/pass-it-on/server_example.toml" # Install system user #install -Dm0644 "$srcdir/pass-it-on-$pkgver/resources/systemd/pass-it-on-server-sysusers.conf" "$pkgdir/usr/lib/sysusers.d/pass-it-on-server.conf" # Package licenses install -Dm0644 "$srcdir/$_pkgsrc/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }