blob: aec719c925da1612a72cc9dbbcf8dc5dc0416141 (
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
53
54
55
|
# Maintainer: Torleif Skår <torleif.skaar AT gmail DOT com>
pkgname=tailor-cli
pkgver="0.3.1"
pkgrel=1
pkgdesc="CLI for controlling tailor-daemon (part of tuxedo-rs)"
arch=("x86_64")
url="https://github.com/AaronErhardt/tuxedo-rs"
license=('GPL-2.0-or-later')
groups=('tuxedo-rs')
provides=(
'tailor-cli' # Name conflict with 'tailor'
)
depends=(
'glibc'
'gcc-libs'
'tailord=0.2.5'
)
makedepends=(
'git'
'cargo'
)
source=(
"${pkgname}"::"git+${url}#tag=${pkgname%-*}-v${pkgver}"
)
sha256sums=(
'cf33972732601cd9e0f2502689a2f7620ba5fc886174e84f9192bbd5c8e801a1'
)
# Source name is tailor_cli rather than tailor-cli
_srcname="tailor_cli"
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd "${pkgname}"
# Fetch packages
cargo fetch --locked --target "${CARCH}-unknown-linux-gnu" --manifest-path "${_srcname}/Cargo.toml"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd "${pkgname}"
cargo build --frozen --release --all-features --manifest-path "${_srcname}/Cargo.toml"
}
package() {
cd "${pkgname}"
# Install it as tailor_cli following same convention as tailor_gui upstream
# tailor is already taken by another package in AUR
install -Dm0755 "target/release/tailor" "${pkgdir}/usr/bin/${_srcname}"
}
# vim: sw=2 ts=2 et:
|