blob: ac4a78b5e5726b17096dc29c9355fcb0f6eb899d (
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
49
|
# Maintainer: Josh Ellithorpe <quest@mac.com>
pkgname=nexus-client-git
pkgver=r555.30f1ecc
pkgrel=1
pkgdesc="Cross-platform BBS client with chat, file transfers, and news support (git version)"
arch=('x86_64' 'aarch64')
url="https://github.com/zquestz/nexus"
license=('MIT')
depends=('alsa-lib')
makedepends=('cargo' 'git')
provides=('nexus-client')
conflicts=('nexus-client')
options=('!lto')
source=("$pkgname::git+https://github.com/zquestz/nexus.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --release -p nexus-client
}
package() {
cd "$pkgname"
# Binary
install -Dm755 "target/release/nexus" "$pkgdir/usr/bin/nexus"
# Desktop file
install -Dm644 "nexus-client/assets/linux/nexus.desktop" "$pkgdir/usr/share/applications/nexus.desktop"
# Icon
install -Dm644 "nexus-client/assets/linux/nexus.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/nexus.svg"
# License
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|