blob: c75dfa1e5cd6d8ad873ac02679948991ccef1f96 (
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
46
47
48
|
# Maintainer: Sauyon Lee <aur at sjle.co>
pkgname=bin
pkgver=2.0.1
pkgrel=1
epoch=
pkgdesc="A paste bin written in Rust."
arch=('i686' 'x86_64')
url="https://github.com/w4/bin"
license=('WTFPL')
groups=()
depends=()
makedepends=('rust' 'clang')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/w4/bin/archive/v${pkgver}.tar.gz" 'bin.service' 'Rocket.toml')
sha256sums=('ad8080415b27e55ee7295e0f93107cba6e5903453ec005850be275303fc2c55d'
'baff25e9693ad10b482f2e4cc8c1f222f1076d0795cf03f40d595c448d00b56e'
'dd1f497805fecbaaa231d115234697f11ffe66ddc37b124326d4d83250b1d6a2')
build() {
cd "$srcdir/$pkgname-$pkgver"
cargo build --release
}
check() {
cd "$srcdir/$pkgname-$pkgver"
cargo test
}
package() {
cd "$srcdir"
install -Dm644 bin.service "$pkgdir/usr/lib/systemd/system/bin.service"
install -Dm644 Rocket.toml "$pkgdir/etc/bin/Rocket.toml"
install -Dm755 "$pkgname-$pkgver/target/release/bin" "$pkgdir/usr/bin/bin"
}
# vim:set ts=2 sw=2 et:
|