summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a4c9c4a59411f56f51687f6540270f39df84ef6 (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
# Maintainer: taotieren  <admin@taotieren.com>

pkgname=aliyundrive-fuse
pkgver=0.1.14
pkgrel=1
pkgdesc="阿里云盘 FUSE 磁盘挂载"
arch=("any")
url="https://github.com/messense/aliyundrive-fuse"
license=("MIT")
depends=("fuse3")
makedepends=('rust')
provides=("${pkgname}")
# options=("!strip" "emptydirs")
install=
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('a972342ac7e171e0b585766730c69f2e35039cb05dd987e070fcb8dbd6cf3b9f')

# prepare() {
#     cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
# }

build() {
    cd "${srcdir}/${pkgname}-${pkgver}/"
    export RUSTUP_TOOLCHAIN=stable
    export CARGO_TARGET_DIR=target
    cargo build  --release --all-features
}

# check() {
#     cd "${srcdir}/${pkgname}-${pkgver}/"
#     export RUSTUP_TOOLCHAIN=stable
#     cargo test  --all-features
# }

package() {
    cd "$pkgname-$pkgver"
    export RUSTUP_TOOLCHAIN=stable
    cargo install --no-track  --all-features --root "$pkgdir/usr/" --path .
    install -Dm644 "systemd.service" "${pkgdir}/etc/systemd/system/${pkgname}.service"
}