summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fa8c5708916e36f7e30cbbbea1d03e3c9b15df40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: renyuneyun (Rui ZHAO) <renyuneyun@gmail.com>
pkgname=projfs
pkgver=0.1.3
pkgrel=3
pkgdesc='A FUSE filesystem which does projection of directory content through a custom command. Capable of doing audio/video transparent transcoding (e.g. any music file to mp3).'
url='https://github.com/renyuneyun/projfs'
license=('Apache')
depends=('fuse2')
makedepends=('rust' 'cargo')
arch=('x86_64')
source=("git+https://github.com/renyuneyun/projfs.git#tag=v$pkgver")
sha256sums=('SKIP')

build() {
    cd "$pkgname"
    cargo build --release --locked
}

package() {
    cd "$pkgname"
    install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
    install -Dm755 "$srcdir/$pkgname/example_projection.yml" "$pkgdir/usr/share/projfs/$pkgname/example_projection.yml"
}