blob: 59c352f5dc613bde569ae2f881afed318e599562 (
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
|
# Maintainer: Kemel Zaidan <kemelzaidan@gmail.com>
pkgname=tuckr
_pkgname=Tuckr
pkgver=0.10.0
pkgrel=1
pkgdesc="A super powered replacement for the GNU Stow dotfile manager"
arch=('x86_64' 'i686' 'arm')
url="https://github.com/RaphGL/Tuckr"
license=('GPL-3.0-only')
makedepends=('cargo' 'git')
depends=('glibc' 'gcc-libs')
source=("$url/archive/refs/tags/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('084b35e54611a25b62d2224db22f0cec7b4cfaab5debfb6d43ceede7d6b4a28f')
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd "$_pkgname-$pkgver"
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd "$_pkgname-$pkgver"
cargo build --frozen --release --all-features
}
check(){
export RUSTUP_TOOLCHAIN=stable
cd "$_pkgname-$pkgver"
cargo test --frozen --all-features
}
package() {
cd "$_pkgname-$pkgver"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
}
|