diff options
author | Nicola Squartini | 2017-12-02 18:12:08 +0100 |
---|---|---|
committer | Nicola Squartini | 2017-12-02 18:12:08 +0100 |
commit | dc74573e1ee99685e1e41555c02f30f7ceeee0ab (patch) | |
tree | 1d720ffe86efed0c6d4b2e62a94d0a7971b65d48 | |
download | aur-dc74573e1ee99685e1e41555c02f30f7ceeee0ab.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 48 |
3 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..128e1e36c078 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = cardano-sl + pkgdesc = Cryptographic currency implementing Ouroboros PoS protocol + pkgver = 1.0.3 + pkgrel = 1 + url = https://github.com/input-output-hk/cardano-sl/ + arch = x86_64 + license = MIT + makedepends = git + makedepends = ncurses5-compat-libs + makedepends = npm + makedepends = stack + source = git+https://github.com/input-output-hk/cardano-sl.git#commit=e4b77ed9d8502a181fb1584b9f48984ba1399598 + sha256sums = SKIP + +pkgname = cardano-sl + pkgdesc = Cryptographic currency implementing Ouroboros PoS protocol + depends = gmp + depends = openssl + depends = rocksdb + +pkgname = daedalus-bridge + pkgdesc = Cryptographic currency implementing Ouroboros PoS protocol + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..0e1e51598902 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/*.pkg.tar.* +/pkg/ +/src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3c5023d8f893 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Nicola Squartini <tensor5@gmail.com> + +pkgname=(cardano-sl daedalus-bridge) +pkgver=1.0.3 +_commit=e4b77ed9d8502a181fb1584b9f48984ba1399598 +pkgrel=1 +pkgdesc='Cryptographic currency implementing Ouroboros PoS protocol' +arch=('x86_64') +url='https://github.com/input-output-hk/cardano-sl/' +license=('MIT') +makedepends=('git' 'ncurses5-compat-libs' 'npm' 'stack') +source=("git+https://github.com/input-output-hk/cardano-sl.git#commit=${_commit}") +sha256sums=('SKIP') + +build() { + cd ${pkgname} + + stack build --ghc-build=tinfo6 + + # Build Daedalus Bridge + stack exec --ghc-build=tinfo6 -- cardano-wallet-hs2purs + cd daedalus + npm install + npm run build:prod +} + +package_cardano-sl() { + pkgdesc='Cryptographic currency implementing Ouroboros PoS protocol' + depends=('gmp' 'openssl' 'rocksdb') + + cd ${pkgname} + + stack install --ghc-build=tinfo6 --local-bin-path="${pkgdir}/usr/bin" + install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE +} + +package_daedalus-bridge() { + pkgdesc='Cryptographic currency implementing Ouroboros PoS protocol' + + cd cardano-sl + + install -dm755 "${pkgdir}/usr/lib/node_modules/daedalus-client-api" + cp -r daedalus/* "${pkgdir}/usr/lib/node_modules/daedalus-client-api" + install -Dm644 -t "${pkgdir}/usr/lib/node_modules/daedalus-client-api" \ + log-config-prod.yaml \ + node/configuration.yaml \ + node/*genesis*.json +} |