summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4bf4b2263ed9a56bbafe44956d9ca58e8533cd31 (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
# Maintainer: Herald Yu <yuhr123@gmail.com>
_pkgname=juicefs
pkgname=${_pkgname}-git
pkgver=1.1.0dev
pkgrel=1
pkgdesc="A distributed POSIX file system built on top of Redis and S3 (Community Edition)."
arch=('x86_64' 'aarch64')
url="https://github.com/juicedata/juicefs"
license=('Apache')
conflicts=('juicefs')
depends=('glibc')
makedepends=('go' 'git')
source=("${_pkgname}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
    cd "$_pkgname"
    printf "1.1.0dev" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
    cd "$_pkgname"
    make
}
package() {
    cd "$_pkgname"
    install -Dm755 $_pkgname "$pkgdir"/usr/bin/$_pkgname
    ln -s /usr/bin/$_pkgname "$pkgdir"/usr/bin/mount.$_pkgname
}