Skip to content

Commit 7d82561

Browse files
authored
Merge pull request #17 from teknomunk/pull-request-16
Add PKGBUILD for ArchLinux with other changes
2 parents d945c32 + 5761aca commit 7d82561

File tree

7 files changed

+84
-7
lines changed

7 files changed

+84
-7
lines changed

ArchLinux/.SRCINFO

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
pkgbase = multiverse-git
2+
pkgdesc = A decentralized version control system for peer-to-peer software development.
3+
pkgver = d945c32
4+
pkgrel = 1
5+
url = http://www.multiverse-vcs.com/
6+
arch = aarch64
7+
arch = x86_64
8+
makedepends = git
9+
makedepends = go>=1.16
10+
depends = go>=1.16
11+
provides = multiverse
12+
source = multiverse-git::git+https://github.com/multiverse-vcs/go-multiverse
13+
sha256sums = SKIP
14+
15+
pkgname = multiverse-git
16+

ArchLinux/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pkg
2+
src
3+
*.pkg.tar.*
4+
multiverse*

ArchLinux/PKGBUILD

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Maintainer Keenan Nemetz <[email protected]>
2+
# Maintainer teknomunk <https://github.com/teknomunk>
3+
pkgname=multiverse-git
4+
pkgver=678f40f
5+
pkgrel=1
6+
pkgdesc="A decentralized version control system for peer-to-peer software development."
7+
arch=(aarch64 x86_64)
8+
url=http://www.multiverse-vcs.com/
9+
licence=("AGPL3")
10+
provides=(multiverse)
11+
depends=("go>=1.16")
12+
makedepends=("git" "go>=1.16")
13+
source=(${pkgname}::git+https://github.com/multiverse-vcs/go-multiverse)
14+
sha256sums=("SKIP")
15+
check(){
16+
export GOPATH=${srcdir}/go
17+
export PATH=${GOPATH}/bin:${PATH}
18+
19+
cd ${srcdir}/${pkgname}
20+
make test
21+
}
22+
pkgver(){
23+
cd ${srcdir}/${pkgname}
24+
git log --format=%h -1
25+
}
26+
prepare(){
27+
export GOPATH=${srcdir}/go
28+
export PATH=${GOPATH}/bin:${PATH}
29+
30+
cd ${srcdir}/${pkgname}
31+
go get golang.org/dl/go1.16
32+
go1.16 download
33+
}
34+
build(){
35+
export GOPATH=${srcdir}/go
36+
export PATH=${GOPATH}/bin:${PATH}
37+
38+
cd ${srcdir}/${pkgname}
39+
make
40+
}
41+
package(){
42+
export GOPATH=${srcdir}/go
43+
export PATH=${GOPATH}/bin:${PATH}
44+
45+
cd ${srcdir}/${pkgname}
46+
make install GOBIN=${pkgdir}/usr/bin PATH=${GOPATH}/bin:${PATH}
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
51+
}

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
GOCC = go1.16beta1
1+
GOCC = go1.16
22

33
.PHONY: multi install test multi-cross
44
.PHONY: multi-darwin multi-darwin-386 multi-darwin-amd64

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+

misc/multi-user.conf

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
u multi 5000 "Decentralized VCS Server" /var/lib/multi
2+
g multi 5000
3+
m multi multi
4+
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
[Unit]
22
Description=Multiverse daemon
33
After=network.target
4-
Requires=ipfs.service
54

65
[Service]
7-
ExecStart=/bin/bash -c "exec $HOME/go/bin/multi daemon"
6+
User=multi
7+
Group=multi
8+
ExecStart=/usr/bin/multi daemon
89
Restart=always
910
RestartSec=5s
1011

1112
[Install]
12-
WantedBy=default.target
13+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)