mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
fs-repo-migrations: update to 2.0.2+13~14+v1.0.0.
This commit is contained in:
parent
f9e09915c5
commit
26a11750e4
1 changed files with 31 additions and 5 deletions
|
@ -1,18 +1,44 @@
|
||||||
# Template file for 'fs-repo-migrations'
|
# Template file for 'fs-repo-migrations'
|
||||||
pkgname=fs-repo-migrations
|
pkgname=fs-repo-migrations
|
||||||
version=1.7.1
|
version=2.0.2+13~14+v1.0.0
|
||||||
revision=3
|
revision=1
|
||||||
|
_version=${version##*+}
|
||||||
|
_path="fs-repo-${version#*+}"
|
||||||
|
_path="${_path%+*}"
|
||||||
|
_path="${_path/"~"/-to-}"
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path="github.com/ipfs/fs-repo-migrations"
|
# go_import_path="github.com/ipfs/fs-repo-migrations/fs-repo-migrations"
|
||||||
|
hostmakedepends="git"
|
||||||
short_desc="Tool to upgrade the IPFS filesystem repository"
|
short_desc="Tool to upgrade the IPFS filesystem repository"
|
||||||
maintainer="Christopher Brannon <chris@the-brannons.com>"
|
maintainer="Christopher Brannon <chris@the-brannons.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/ipfs/fs-repo-migrations"
|
homepage="https://github.com/ipfs/fs-repo-migrations"
|
||||||
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
|
distfiles="https://github.com/ipfs/fs-repo-migrations/archive/${_path}/${_version}.tar.gz>${_path}-${_version}.tar.gz"
|
||||||
checksum=6fbd68a6ae5eabcebdd0dc81e909a069facb112c4fe0421f159ab58112a041c2
|
checksum=17396914690c74527e365a4bfffcd1097aeef7772a7e3fa5d9b42af1a0f5c294
|
||||||
|
|
||||||
# fix: collect2: fatal error: cannot find 'ld'
|
# fix: collect2: fatal error: cannot find 'ld'
|
||||||
export LDFLAGS="-fuse-ld=bfd"
|
export LDFLAGS="-fuse-ld=bfd"
|
||||||
|
# export GOTOOLCHAIN=go1.20
|
||||||
|
|
||||||
|
go_import_path="github.com/ipfs/fs-repo-migrations/fs-repo-0-to-1"
|
||||||
|
for _v in $(seq 2 "${_path##*-}"); do
|
||||||
|
go_import_path+=" github.com/ipfs/fs-repo-migrations/fs-repo-$((_v - 1))-to-${_v}"
|
||||||
|
done
|
||||||
|
unset _v
|
||||||
|
|
||||||
|
do_configure() {
|
||||||
|
GOSRCPATH="${GOPATH}/src/github.com/ipfs/fs-repo-migrations"
|
||||||
|
mkdir -p ${GOSRCPATH%/*}/
|
||||||
|
ln -rfs "$PWD" "${GOSRCPATH}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
GOSRCPATH="${GOPATH}/src/github.com/ipfs/fs-repo-migrations"
|
||||||
|
}
|
||||||
|
|
||||||
|
pre_install() {
|
||||||
|
GOSRCPATH="${GOPATH}/src/github.com/ipfs/fs-repo-migrations"
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
Loading…
Add table
Reference in a new issue