Last active
June 9, 2017 02:30
-
-
Save Thann/d114d5a2a6af18c30fede9738872a913 to your computer and use it in GitHub Desktop.
bcoin-git package for arch
This file contains hidden or 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
pkgbase = bcoin-git | |
pkgdesc = An alternative implementation of the bitcoin protocol, written in node.js. | |
pkgver = 1.0.0.beta.12.100.gf0b43764 | |
pkgrel = 1 | |
url = http://bcoin.io/ | |
arch = i686 | |
arch = x86_64 | |
license = MIT | |
makedepends = git | |
makedepends = npm | |
makedepends = python2 | |
depends = nodejs | |
provides = bcoin | |
conflicts = bcoin | |
source = bcoin-git::git+https://github.com/bcoin-org/bcoin.git | |
md5sums = SKIP | |
pkgname = bcoin-git | |
This file contains hidden or 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: Jonathan Knapp <[email protected]> | |
# Contributor: Christopher Jeffrey | |
# URL: https://github.com/bcoin-org/bcoin | |
# Upstream: https://github.com/bcoin-org/bcoin | |
pkgname=bcoin-git | |
pkgver=1.0.0.beta.12.100.gf0b43764 | |
pkgrel=1 | |
pkgdesc='An alternative implementation of the bitcoin protocol, written in node.js.' | |
arch=('i686' 'x86_64') | |
url='http://bcoin.io/' | |
license=('MIT') | |
depends=('nodejs') | |
makedepends=('git' 'npm' 'python2') | |
provides=('bcoin') | |
conflicts=('bcoin') | |
source=("$pkgname::git+https://github.com/bcoin-org/bcoin.git") | |
md5sums=('SKIP') | |
pkgver() { | |
cd $pkgname | |
git describe | sed 's/^v//;s/-/./g' | |
} | |
package() { | |
cd "$pkgname" | |
npm install -g --prefix "$pkgdir"/usr | |
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | |
#HACK: remove references to $srcdir & $pkgdir (if you care) | |
# npm install -g removeNPMAbsolutePaths --prefix "$pkgdir"/usr | |
# "$pkgdir"/usr/bin/removeNPMAbsolutePaths "$pkgdir"/usr | |
# npm uninstall -g removeNPMAbsolutePaths --prefix "$pkgdir"/usr | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment