blob: c908ad5d92324f93d7a265ead2d44fa9ee264676 (
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
|
# Maintainer: Gaoyang Zhang <gy@blurgy.xyz>
pkgname=dt-cli
pkgver=0.3.1
pkgrel=1
epoch=
pkgdesc="Syncing dotfiles and more"
arch=("any")
url="https://github.com/blurgyy/dt"
license=('MIT OR Apache 2.0')
groups=()
depends=()
makedepends=(
cargo
curl
)
checkdepends=()
optdepends=()
provides=("dt-cli")
conflicts=("dt-cli-git" "dt-cli-bin")
replaces=()
backup=()
options=()
install=
changelog=
source=(
"https://github.com/blurgyy/dt/archive/refs/tags/v${pkgver}.tar.gz"
"https://github.com/blurgyy/dt/releases/download/v${pkgver}/LICENSE-APACHE"
"https://github.com/blurgyy/dt/releases/download/v${pkgver}/LICENSE-MIT"
)
sha256sums=(
"beb2312c6dc6b0a8199eefc49ea492f6c775a6d25d546506a9fa6cc4a6352584"
"c95bae1d1ce0235ecccd3560b772ec1efb97f348a79f0fbe0a634f0c2ccefe2c"
"1aac13b1e305a9a4f6a8a5a7123f3abd092c59b2696d1bde3df32eac0b934322"
)
noextract=()
validpgpkeys=()
build() {
cd "dt-$pkgver"
cargo build --bin=dt-cli --release --all-features --locked
}
check() {
cd "dt-$pkgver"
cargo test --bin=dt-cli --lib=dt-core --release --all-features --locked
}
package() {
cd "dt-$pkgver"
install -Dm755 "target/release/dt-cli" "$pkgdir/usr/bin/dt-cli"
install -Dm644 "LICENSE-APACHE" "$pkgdir/usr/share/licenses/dt/LICENSE-APACHE"
install -Dm644 "LICENSE-MIT" "$pkgdir/usr/share/licenses/dt/LICENSE-MIT"
}
|