forked from Zeos-ctrl/newsman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
37 lines (32 loc) · 975 Bytes
/
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
# Maintainer: Connor Bryan <[email protected]>
pkgname='newsman'
pkgver=1.0.0
pkgrel=1
pkgdesc="Mailing list manager"
arch=('x86_64')
url="https://github.com/Zeos-ctrl/newsman"
license=('GPL')
depends=(mariadb)
makedepends=(
cargo
git
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/Zeos-ctrl/$pkgname")
install="newsman.install"
md5sums=('SKIP')
prepare() {
export RUSTUP_TOOLCHAIN=stable
cargo fetch --target "$CARCH-unknown-linux-gnu"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
install -m755 -d ${pkgdir}/usr/lib/systemd/system
install -m755 -d ${pkgdir}/etc/newsman
install -m644 "$startdir/newsman.service" "$pkgdir/usr/lib/systemd/system"
install -m755 "$startdir/newsman.toml" "$pkgdir/etc/newsman"
}