Skip to content

Commit 5761aca

Browse files
committed
Add updated PKGBUILD, update README to remove beta1
1 parent 678f40f commit 5761aca

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

ArchLinux/PKGBUILD

+18-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maintainer Keenan Nemetz <[email protected]>
22
# Maintainer teknomunk <https://github.com/teknomunk>
33
pkgname=multiverse-git
4-
pkgver=d945c32
4+
pkgver=678f40f
55
pkgrel=1
66
pkgdesc="A decentralized version control system for peer-to-peer software development."
77
arch=(aarch64 x86_64)
@@ -13,30 +13,39 @@ makedepends=("git" "go>=1.16")
1313
source=(${pkgname}::git+https://github.com/multiverse-vcs/go-multiverse)
1414
sha256sums=("SKIP")
1515
check(){
16-
cd ${srcdir}/${pkgname}
1716
export GOPATH=${srcdir}/go
17+
export PATH=${GOPATH}/bin:${PATH}
18+
19+
cd ${srcdir}/${pkgname}
1820
make test
1921
}
2022
pkgver(){
2123
cd ${srcdir}/${pkgname}
2224
git log --format=%h -1
2325
}
2426
prepare(){
25-
cd ${srcdir}/${pkgname}
26-
sed -i "s/GOCC = go1.16beta1/GOCC = go1.16/" Makefile
2727
export GOPATH=${srcdir}/go
28+
export PATH=${GOPATH}/bin:${PATH}
29+
30+
cd ${srcdir}/${pkgname}
2831
go get golang.org/dl/go1.16
29-
PATH=${GOPATH}/bin:${PATH} go1.16 download
32+
go1.16 download
3033
}
3134
build(){
3235
export GOPATH=${srcdir}/go
36+
export PATH=${GOPATH}/bin:${PATH}
37+
3338
cd ${srcdir}/${pkgname}
34-
PATH=${GOPATH}/bin:${PATH} make
39+
make
3540
}
3641
package(){
37-
cd ${srcdir}/${pkgname}
3842
export GOPATH=${srcdir}/go
43+
export PATH=${GOPATH}/bin:${PATH}
44+
45+
cd ${srcdir}/${pkgname}
3946
make install GOBIN=${pkgdir}/usr/bin PATH=${GOPATH}/bin:${PATH}
40-
install -Dm644 ${srcdir}/${pkgname}/multiverse.service ${pkgdir}/usr/lib/systemd/system/multiverse.service
41-
sed -i "s_exec \$HOME/go/bin/multi daemon_exec /usr/bin/multi daemon_" ${pkgdir}/usr/lib/systemd/system/multiverse.service
47+
mkdir -p ${pkgdir}/var/lib/multi/
48+
chown 5000:5000 ${pkgdir}/var/lib/multi
49+
install -Dm644 ${srcdir}/${pkgname}/misc/multiverse.service ${pkgdir}/usr/lib/systemd/system/multiverse.service
50+
install -Dm644 ${srcdir}/${pkgname}/misc/multi-user.conf ${pkgdir}/usr/lib/sysusers.d/multi.conf
4251
}

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
Go 1.16 or higher is required.
2424

2525
```bash
26-
$ go get golang.org/dl/go1.16beta1
27-
$ go1.16beta1 download
26+
$ go get golang.org/dl/go1.16
27+
$ go1.16 download
2828
```
2929

3030
Build and install from sources.
@@ -40,7 +40,7 @@ $ make install
4040
```
4141
USAGE:
4242
multi [global options] command [command options] [arguments...]
43-
43+
4444
COMMANDS:
4545
branch List, create, or delete branches
4646
commit Record changes
@@ -63,3 +63,4 @@ Multiverse follows the [Contributor Covenant](https://contributor-covenant.org/v
6363
### License
6464

6565
GNU Affero General Public License v3.0
66+

0 commit comments

Comments
 (0)