diff options
author | Jolly Mort | 2018-03-04 17:32:11 +0100 |
---|---|---|
committer | Jolly Mort | 2018-03-04 17:32:11 +0100 |
commit | c81e28df37acb8351cd18c885195933bbe7ff005 (patch) | |
tree | 29e503415c7cd9ceed24668742676b3a1d59fdb9 | |
download | aur-c81e28df37acb8351cd18c885195933bbe7ff005.tar.gz |
Initial commit: 4.5.0
* Basic build, based on copay AUR package v3.14.2
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 68 | ||||
-rw-r--r-- | bitcoin-com.desktop | 25 |
3 files changed, 111 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9912b48f0982 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = bitcoin-com + pkgdesc = Bitcoin.com Bitcoin Wallet + pkgver = 4.5.0 + pkgrel = 1 + url = https://www.bitcoin.com/ + arch = x86_64 + license = MIT + makedepends = zip + depends = npm + depends = python2 + options = !strip + source = bitcoin-com.desktop + md5sums = a48078782a2a0650271317e9be091f4c + source_x86_64 = bitcoin-com-4.5.0::git+https://github.com/Bitcoin-com/Wallet.git#tag=4.5.0 + md5sums_x86_64 = SKIP + +pkgname = bitcoin-com + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6ab6d93abb58 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,68 @@ +# Author: Jolly Mort <jm-zpp4hdgm(at)unseeni(dot)net> +# Based on copay AUR package, credit: Kyle Manna <kyle(at)kylemanna(dot)com> +# +# Upstream: https://github.com/Bitcoin-com/Wallet +# +# Signed upstream binaries dropped in favor of git build due to quality issues +# highlighted at https://github.com/bitpay/copay/issues/6204 + +pkgname=bitcoin-com +pkgver=4.5.0 +pkgrel=1 +pkgdesc="Bitcoin.com Bitcoin Wallet" +arch=('x86_64') +url="https://www.bitcoin.com/" +license=('MIT') +makedepends=('zip') +depends=('npm' 'python2') + +# For some reason, stripping the massive copay binary breaks the app +options=('!strip') + +source=('bitcoin-com.desktop') + +md5sums=('a48078782a2a0650271317e9be091f4c') +md5sums_x86_64=('SKIP') + +# Ideally the upstream git repo tags would signed, or the repo source snapshots were signed. +# Would be nice if anything was signed and worked. +# TODO: Try to verify the git tag we are about to build +source_x86_64=("${pkgname}-${pkgver}::git+https://github.com/Bitcoin-com/Wallet.git#tag=${pkgver}") + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + npm run clean-all + npm run apply:bitcoincom + npm run build:desktop +} + +# +# TODO: Placing the entire node-webkit build in /opt feels dirty if we just +# built the package, but scattering it around /usr feels worse. Is there +# a recommended psuedo-webapps convention? +# +package() { + # Prep destination + mkdir -p ${pkgdir}/opt/bitcoin-com + cd ${pkgdir}/opt/bitcoin-com + + # Unzip the binary package + unzip "${srcdir}/${pkgname}-${pkgver}/webkitbuilds/Bitcoin.com-linux.zip" + + # Remove arch directory + mv Bitcoin.com-linux/* . + rmdir Bitcoin.com-linux + + # Fix file permissions + find ${pkgdir}/opt/bitcoin-com/ -type f -print0 | xargs -0 chmod a+r + + # Symlink in to the default PATH + mkdir -p ${pkgdir}/usr/bin + ln -s /opt/bitcoin-com/Bitcoin.com ${pkgdir}/usr/bin/bitcoin-com + + # Create desktop icon + mkdir -p "${pkgdir}/usr/share/applications" "${pkgdir}/usr/share/pixmaps" + install -m644 "${srcdir}/bitcoin-com.desktop" "$pkgdir/usr/share/applications/bitcoin-com.desktop" + ln -s "../../../opt/bitcoin-com/512x512.png" "$pkgdir/usr/share/pixmaps/bitcoin-com.png" +} diff --git a/bitcoin-com.desktop b/bitcoin-com.desktop new file mode 100644 index 000000000000..cd5d14b7149f --- /dev/null +++ b/bitcoin-com.desktop @@ -0,0 +1,25 @@ +[Desktop Entry] + +# The type as listed above +Type=Application + +# The version of the desktop entry specification to which this file complies +Version=4.5.0 + +# The name of the application +Name=Bitcoin-com + +# A comment which can/will be used as a tooltip +Comment=Bitcoin.com Bitcoin Wallet + +# The executable of the application. +Exec=bitcoin-com + +# The name of the icon that will be used to display this entry +Icon=bitcoin-com + +# Describes whether this application needs to be run in a terminal or not +Terminal=false + +# Describes the categories in which this entry should be shown +Categories=Finance;P2P |