Skip to content

Commit

Permalink
Merge pull request #21 from zhanghua000/master
Browse files Browse the repository at this point in the history
No need to download go1.16 manually.
  • Loading branch information
nasdf authored Mar 2, 2021
2 parents abe236f + c3c5070 commit 47bedfe
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions ArchLinux/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer Keenan Nemetz <[email protected]>
# Maintainer teknomunk <https://github.com/teknomunk>
pkgname=multiverse-git
pkgver=678f40f
pkgver=abe236f
pkgrel=1
pkgdesc="A decentralized version control system for peer-to-peer software development."
arch=(aarch64 x86_64)
Expand All @@ -14,7 +14,6 @@ source=(${pkgname}::git+https://github.com/multiverse-vcs/go-multiverse)
sha256sums=("SKIP")
check(){
export GOPATH=${srcdir}/go
export PATH=${GOPATH}/bin:${PATH}

cd ${srcdir}/${pkgname}
make test
Expand All @@ -25,25 +24,21 @@ pkgver(){
}
prepare(){
export GOPATH=${srcdir}/go
export PATH=${GOPATH}/bin:${PATH}

cd ${srcdir}/${pkgname}
go get golang.org/dl/go1.16
go1.16 download
sed "s/go1.16/go/" -i Makefile
}
build(){
export GOPATH=${srcdir}/go
export PATH=${GOPATH}/bin:${PATH}

cd ${srcdir}/${pkgname}
make
}
package(){
export GOPATH=${srcdir}/go
export PATH=${GOPATH}/bin:${PATH}

cd ${srcdir}/${pkgname}
make install GOBIN=${pkgdir}/usr/bin PATH=${GOPATH}/bin:${PATH}
make install GOBIN=${pkgdir}/usr/bin
mkdir -p ${pkgdir}/var/lib/multi/
chown 5000:5000 ${pkgdir}/var/lib/multi
install -Dm644 ${srcdir}/${pkgname}/misc/multiverse.service ${pkgdir}/usr/lib/systemd/system/multiverse.service
Expand Down

0 comments on commit 47bedfe

Please sign in to comment.