Created
October 19, 2015 23:27
-
-
Save kpcyrd/9c37e3f2fb4a1a2ad1dd to your computer and use it in GitHub Desktop.
ipfs PKGBUILD
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
# Maintainer: kpcyrd <git@rxv.cc> | |
# Contributor: Frederik “Freso” S. Olesen <freso.dk@gmail.com> | |
# Contributor: Ian Naval <ianonavy@gmail.com> | |
pkgname=go-ipfs | |
pkgver=0.3.8 | |
pkgrel=1 | |
pkgdesc='global versioned p2p merkledag file system' | |
url='https://github.com/ipfs/go-ipfs' | |
arch=('i686' 'x86_64') | |
license=('MIT') | |
makedepends=('go') | |
optdepends=('fuse: for mounting/advanced use' | |
'bash-completion: bash completion support') | |
source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) | |
sha512sums=('d991714e8a0ed6111ed5585a59a964f4d16679b0c4d2af335592c742490c420f66ad2454e622dab952230675d336020a0f4747676a463ce2a9cff4dea5827e6b') | |
prepare() { | |
cd "${pkgname}-${pkgver}" | |
mkdir -p .gopath/src/github.com/ipfs | |
ln -sf "$PWD" .gopath/src/github.com/ipfs/go-ipfs | |
} | |
build() { | |
cd "${pkgname}-${pkgver}/cmd/ipfs" | |
export GOPATH="$PWD/../../.gopath" | |
go build -v | |
} | |
package() { | |
cd "${pkgname}-${pkgver}" | |
install -Dm 755 cmd/ipfs/ipfs "${pkgdir}/usr/bin/ipfs" | |
install -Dm 644 misc/completion/ipfs-completion.bash "${pkgdir}/etc/bash_completion.d/ipfs" | |
install -Dm 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE | |
install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" \ | |
README.md \ | |
CHANGELOG.md | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment