blob: a97b80e210cda590ccb8a6d5f46a7a2f7a08d87c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Kevin Wheelans <kevin dot wheelans at proton dot me>
pkgname="pass-it-on-server"
pkgver=0.16.0
pkgrel=2
pkgdesc="Pass-it-on server component"
arch=("any")
license=("MIT")
url="https://github.com/kwheelans/pass-it-on"
conflicts=("pass-it-on-server-bin")
depends=("openssl" "sqlite")
makedepends=("cargo")
options=("!lto")
source=("https://github.com/kwheelans/pass-it-on/releases/download/v$pkgver/pass-it-on-v$pkgver.tar.gz")
b2sums=('2b52f04add1f7f1ce2b3798c2874dc8879552e8110dba01a5526802d45d3cecb44f968804f4e6a10cae4820bc488cae31c5119b22f4a04f791196bf801613fb7')
prepare() {
export RUSTUP_TOOLCHAIN=stable
cargo fetch --manifest-path pass-it-on-$pkgver/Cargo.toml
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --bin $pkgname --release --manifest-path pass-it-on-$pkgver/Cargo.toml --no-default-features --features server-bin-full
}
#check() {
# export RUSTUP_TOOLCHAIN=stable
# cargo test --frozen -features server-bin-full
#}
package() {
install -Dm0755 target/release/$pkgname "$pkgdir/usr/bin/$pkgname"
install -Dm0644 "$srcdir/pass-it-on-$pkgver/resources/systemd/pass-it-on-server.service" "$pkgdir/usr/lib/systemd/system/pass-it-on-server.service"
install -Dm0644 "$srcdir/pass-it-on-$pkgver/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/pass-it-on-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|