-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
PKGBUILD
87 lines (73 loc) · 2.91 KB
/
PKGBUILD
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
pkgbase=rebuilderd
pkgname=(rebuilderd rebuilderd-tools)
pkgver=0.0.0
pkgrel=1
pkgdesc='Independent verification system of binary packages'
url='https://github.com/kpcyrd/rebuilderd'
arch=('x86_64')
license=('GPL3')
depends=('openssl' 'shared-mime-info' 'xz' 'libzstd.so')
makedepends=('cargo' 'sqlite' 'scdoc')
backup=('etc/rebuilderd.conf'
'etc/rebuilderd-sync.conf'
'etc/rebuilderd-worker.conf')
build() {
cd ..
cargo build --release --locked
make docs
}
package_rebuilderd() {
pkgdesc='Independent verification system of binary packages (server package)'
depends=('rebuilderd-tools' 'sqlite' 'archlinux-repro')
backup=('etc/rebuilderd.conf'
'etc/rebuilderd-sync.conf'
'etc/rebuilderd-worker.conf')
cd ..
install -Dm 755 -t "${pkgdir}/usr/bin" \
target/release/rebuilderd \
target/release/rebuilderd-worker
# install rebuilder scripts
install -Dm 755 -t "${pkgdir}/usr/libexec/rebuilderd" \
worker/rebuilder-*.sh
# install config files
install -Dm 644 -t "${pkgdir}/etc" \
contrib/confs/rebuilderd-sync.conf
install -Dm 640 -g 212 -t "${pkgdir}/etc" \
contrib/confs/rebuilderd-worker.conf \
contrib/confs/rebuilderd.conf
# install systemd configs
install -Dm 644 -t "${pkgdir}/usr/lib/systemd/system" \
contrib/systemd/[email protected] \
contrib/systemd/[email protected] \
contrib/systemd/[email protected] \
contrib/systemd/rebuilderd.service
install -Dm 644 contrib/systemd/rebuilderd.sysusers "${pkgdir}/usr/lib/sysusers.d/rebuilderd.conf"
install -Dm 644 contrib/systemd/rebuilderd.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/rebuilderd.conf"
# install docs
install -Dm 644 -t "${pkgdir}/usr/share/man/man1" \
contrib/docs/rebuilderd.1 \
contrib/docs/rebuilderd-worker.1
install -Dm 644 -t "${pkgdir}/usr/share/man/man5" \
contrib/docs/rebuilderd.conf.5 \
contrib/docs/rebuilderd-sync.conf.5 \
contrib/docs/rebuilderd-worker.conf.5
}
package_rebuilderd-tools() {
pkgdesc='Independent verification system of binary packages (tools package)'
cd ..
install -Dm 755 -t "${pkgdir}/usr/bin" \
target/release/rebuildctl
# install completions
install -d "${pkgdir}/usr/share/bash-completion/completions" \
"${pkgdir}/usr/share/zsh/site-functions" \
"${pkgdir}/usr/share/fish/vendor_completions.d"
"${pkgdir}/usr/bin/rebuildctl" completions bash > "${pkgdir}/usr/share/bash-completion/completions/rebuildctl"
"${pkgdir}/usr/bin/rebuildctl" completions zsh > "${pkgdir}/usr/share/zsh/site-functions/_rebuildctl"
"${pkgdir}/usr/bin/rebuildctl" completions fish > "${pkgdir}/usr/share/fish/vendor_completions.d/rebuildctl.fish"
# install docs
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgbase}"
install -Dm 644 -t "${pkgdir}/usr/share/man/man1" \
contrib/docs/rebuildctl.1
}
# vim: ts=2 sw=2 et: