mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 18:22:30 +01:00
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
# Contributor: Damian Kurek <starfire24680@gmail.com>
|
|
# Maintainer: Damian Kurek <starfire24680@gmail.com>
|
|
pkgname=desync
|
|
pkgver=0.9.3
|
|
pkgrel=1
|
|
pkgdesc="Alternative casync implementation"
|
|
url="https://github.com/folbricht/desync"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
makedepends="go"
|
|
depends="fuse"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/folbricht/desync/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"
|
|
mkdir build
|
|
go build -o build ./cmd/desync
|
|
}
|
|
|
|
check() {
|
|
# this test requires the fuse module to be loaded
|
|
if ! grep -Fxq "^fuse " /proc/modules; then
|
|
rm -rf mount-index_linux_test.go
|
|
fi
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 ./build/desync -t "$pkgdir"/usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
ffd97773a51c420c6470ee26c1c93308d625079b8fa598cc8d9558c050a3a86e6096dff1f8b9cbc3413fa70048ba4445a34fd238ab4737e720470572430b43a6 desync-0.9.3.tar.gz
|
|
"
|