blob: ba47472078e492b122064ea34cd796aa01b8d766 (
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
50
51
52
|
# Maintainer: Ralph Torres <mail at ralphptorr dot es>
# Contributor: Jonathan Kirszling <jonathan dot kirszling at runbox dot com>
# Contributor: Nick Econopouly <wry at mm dot st>
_pkgname=tiny
pkgname=$_pkgname-git
pkgver=0.11.0.r21.65f367e
pkgrel=2
pkgdesc='A terminal IRC client written in Rust'
arch=(x86_64)
url=https://github.com/osa1/tiny
license=(MIT)
provides=($_pkgname)
conflicts=($_pkgname)
replaces=(tiny-irc-client-git)
depends=(dbus)
makedepends=(git cargo)
source=(git+$url)
sha512sums=(SKIP)
options=(!lto)
pkgver() {
cd "$srcdir"/$_pkgname
git describe --tags --long --abbrev=7 |\
sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/^v//'
}
prepare() {
cd "$srcdir"/$_pkgname
cargo update
cargo fetch --locked --target $CARCH-unknown-linux-gnu
}
build() {
cd "$srcdir"/$_pkgname
cargo build --frozen --release --features desktop-notifications
}
check() {
cd "$srcdir"/$_pkgname
cargo test --frozen --workspace --features desktop-notifications
}
package() {
cd "$srcdir"/$_pkgname
install -Dm755 -t "$pkgdir"/usr/bin target/release/$_pkgname
install -Dm644 -t "$pkgdir"/usr/share/licenses/$_pkgname LICENSE
install -Dm644 -t "$pkgdir"/usr/share/doc/$_pkgname \
ARCHITECTURE.md CHANGELOG.md README.md
install -Dm644 -t "$pkgdir"/usr/share/$_pkgname crates/$_pkgname/config.yml
}
|