Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PKGBUILD for ArchLinux #16

Merged
merged 1 commit into from
Feb 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions ArchLinux/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pkgbase = multiverse-git
pkgdesc = A decentralized version control system for peer-to-peer software development.
pkgver = d945c32
pkgrel = 1
url = http://www.multiverse-vcs.com/
arch = aarch64
arch = x86_64
makedepends = git
makedepends = go>=1.16
depends = go>=1.16
provides = multiverse
source = multiverse-git::git+https://github.com/multiverse-vcs/go-multiverse
sha256sums = SKIP

pkgname = multiverse-git

4 changes: 4 additions & 0 deletions ArchLinux/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pkg
src
*.pkg.tar.*
multiverse*
42 changes: 42 additions & 0 deletions ArchLinux/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Maintainer Keenan Nemetz <keenan.nemetz@gmail.com>
# Maintainer teknomunk <https://github.com/teknomunk>
pkgname=multiverse-git
pkgver=d945c32
pkgrel=1
pkgdesc="A decentralized version control system for peer-to-peer software development."
arch=(aarch64 x86_64)
url=http://www.multiverse-vcs.com/
licence=("AGPL3")
provides=(multiverse)
depends=("go>=1.16")
makedepends=("git" "go>=1.16")
source=(${pkgname}::git+https://github.com/multiverse-vcs/go-multiverse)
sha256sums=("SKIP")
check(){
cd ${srcdir}/${pkgname}
export GOPATH=${srcdir}/go
make test
}
pkgver(){
cd ${srcdir}/${pkgname}
git log --format=%h -1
}
prepare(){
cd ${srcdir}/${pkgname}
sed -i "s/GOCC = go1.16beta1/GOCC = go1.16/" Makefile
export GOPATH=${srcdir}/go
go get golang.org/dl/go1.16
PATH=${GOPATH}/bin:${PATH} go1.16 download
}
build(){
export GOPATH=${srcdir}/go
cd ${srcdir}/${pkgname}
PATH=${GOPATH}/bin:${PATH} make
}
package(){
cd ${srcdir}/${pkgname}
export GOPATH=${srcdir}/go
make install GOBIN=${pkgdir}/usr/bin PATH=${GOPATH}/bin:${PATH}
install -Dm644 ${srcdir}/${pkgname}/multiverse.service ${pkgdir}/usr/lib/systemd/system/multiverse.service
sed -i "s_exec \$HOME/go/bin/multi daemon_exec /usr/bin/multi daemon_" ${pkgdir}/usr/lib/systemd/system/multiverse.service
}