-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from zhanghua000/master
No need to download go1.16 manually.
- Loading branch information
Showing
1 changed file
with
3 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
@@ -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 | ||
|
@@ -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 | ||
|