Browse Source

Updated official package to 0.8.0

master
Victor Roest 9 months ago
commit
ccdf174f91
Signed by: 0x76 GPG Key ID: A3923C699D1A3BDA
  1. 21
      .SRCINFO
  2. 6
      .gitignore
  3. 54
      PKGBUILD
  4. 9
      ipfs.service
  5. 10
      ipfs@.service

21
.SRCINFO

@ -0,0 +1,21 @@
pkgbase = go-ipfs
pkgdesc = A peer-to-peer hypermedia distribution protocol
pkgver = 0.8.0
pkgrel = 1
url = https://ipfs.io/
arch = x86_64
license = MIT
makedepends = go
makedepends = git
depends = glibc
optdepends = fuse2: for mounting/advanced use
noextract = go-ipfs-0.8.0.tar.gz
source = go-ipfs-0.8.0.tar.gz::https://github.com/ipfs/go-ipfs/releases/download/v0.8.0/go-ipfs-source.tar.gz
source = ipfs.service
source = ipfs@.service
sha512sums = 0fb2dd45c0b935a6eb890d7accc4cc15e63438a0a0db01569832e43751ccb2cc7a9ad78e60e70cde46d28eba016182523b88901c4dead81565ad004eb5c0bcab
sha512sums = 1a6bc7fffc3c3640cda3f33c107424edd698c62bd8509731856b8827ea18be1a1845ef0d5ca15325d48d7d871a78daacc011ff9eacea926bc35899850990c1c6
sha512sums = aed168a35228c4f873e0040d1412f3568bfe1ad1e94ffb8b1a2507058daaf75d7346381d299cf9f0b91951b21553170249ff5f45d5fc060e711cf628ab5e5aad
pkgname = go-ipfs

6
.gitignore

@ -0,0 +1,6 @@
*
!PKGBUILD
!.SRCINFO
!ipfs.service
!ipfs@.service
!.gitignore

54
PKGBUILD

@ -0,0 +1,54 @@
# Maintainer: Johannes Löthberg <johannes@kyriasis.com>
# Contributor: Anatol Pomozov
# Contributor: kpcyrd <git@rxv.cc>
# Contributor: Frederik “Freso” S. Olesen <freso.dk@gmail.com>
# Contributor: Ian Naval <ianonavy@gmail.com>
pkgname=go-ipfs
pkgver=0.8.0
pkgrel=1
pkgdesc='A peer-to-peer hypermedia distribution protocol'
url='https://ipfs.io/'
arch=(x86_64)
license=(MIT)
depends=(glibc)
optdepends=('fuse2: for mounting/advanced use')
makedepends=(go git)
source=(go-ipfs-$pkgver.tar.gz::https://github.com/ipfs/go-ipfs/releases/download/v$pkgver/go-ipfs-source.tar.gz
ipfs.service
ipfs@.service)
noextract=(go-ipfs-$pkgver.tar.gz)
sha512sums=('0fb2dd45c0b935a6eb890d7accc4cc15e63438a0a0db01569832e43751ccb2cc7a9ad78e60e70cde46d28eba016182523b88901c4dead81565ad004eb5c0bcab'
'1a6bc7fffc3c3640cda3f33c107424edd698c62bd8509731856b8827ea18be1a1845ef0d5ca15325d48d7d871a78daacc011ff9eacea926bc35899850990c1c6'
'aed168a35228c4f873e0040d1412f3568bfe1ad1e94ffb8b1a2507058daaf75d7346381d299cf9f0b91951b21553170249ff5f45d5fc060e711cf628ab5e5aad')
prepare() {
mkdir -p go-ipfs
tar -C go-ipfs -xf go-ipfs-$pkgver.tar.gz
}
build() {
cd go-ipfs
export CGO_LDFLAGS="$LDFLAGS"
export CGO_CFLAGS="$CFLAGS"
export CGO_CPPFLAGS="$CPPFLAGS"
export CGO_CXXFLAGS="$CXXFLAGS"
export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
make build
}
package() {
cd go-ipfs
install -Dm 755 cmd/ipfs/ipfs "$pkgdir/usr/bin/ipfs"
install -Dm 644 "$srcdir"/ipfs.service "$pkgdir/usr/lib/systemd/user/ipfs.service"
install -Dm 644 "$srcdir"/ipfs@.service "$pkgdir/usr/lib/systemd/system/ipfs@.service"
install -Dm 644 misc/completion/ipfs-completion.bash "$pkgdir/usr/share/bash-completion/completions/ipfs"
install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/MIT" LICENSE-MIT
install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/APACHE" LICENSE-APACHE
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
}

9
ipfs.service

@ -0,0 +1,9 @@
[Unit]
Description=InterPlanetary File System (IPFS) daemon
[Service]
ExecStart=/usr/bin/ipfs daemon
Restart=on-failure
[Install]
WantedBy=default.target

10
ipfs@.service

@ -0,0 +1,10 @@
[Unit]
Description=InterPlanetary File System (IPFS) daemon
[Service]
User=%i
ExecStart=/usr/bin/ipfs daemon
Restart=on-failure
[Install]
WantedBy=default.target
Loading…
Cancel
Save