blob: 142e54b5a47ea48e160da991af5b7e6d273cea32 (
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
|
# vim: expandtab shiftwidth=2 tabstop=2 softtabstop=4
# Maintainer: Peter Cai <peter@typeblog.net>
pkgname=juicefs-oss
_pkgname=juicefs
pkgver=1.2.0
_pkgver=$(echo $pkgver | sed -E 's/^([0-9\.]+)([^0-9].*)?$/\1-\2/' | sed -E 's/-$//')
pkgrel=1
pkgdesc="A distributed POSIX file system built on top of Redis and S3. (FOSS version)"
arch=('x86_64')
url="https://github.com/juicedata/juicefs"
license=('Apache-2.0')
conflicts=('juicefs')
depends=('glibc')
makedepends=('go')
source=("juicefs-$_pkgver.tar.gz::https://github.com/juicedata/juicefs/archive/refs/tags/v$_pkgver.tar.gz")
sha256sums=('661cf04d83b06e676cbce7a33a37d742787b098c7703ed528b1456391b6017ec')
prepare() {
cd "$_pkgname-$_pkgver"
mkdir -p build/
}
build() {
cd "$_pkgname-$_pkgver"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
go build -o build/$_pkgname .
}
package() {
cd "$_pkgname-$_pkgver"
install -Dm755 build/$_pkgname "$pkgdir"/usr/bin/$_pkgname
ln -s /usr/bin/$_pkgname "$pkgdir"/usr/bin/mount.$_pkgname
}
|