aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 32a9ed45be6c68766f76884ce14558162eafc34f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: David Parrish <daveparrish@gmail.com>

pkgname=bitaddress-git
pkgver=v2.9.8.r0.g6ad40b3
pkgrel=1
pkgdesc="JavaScript Client-Side Bitcoin Wallet Generator"
arch=('any')
url="https://www.bitaddress.org"
license=('MIT')
makedepends=('nodejs-grunt-cli')
provides=('bitsquare')
source=("${pkgname}::git+https://github.com/pointbiz/bitaddress.org.git"
  "bitaddress.sh"
  "bitaddress.desktop")
sha256sums=("SKIP"
  "a5798c819761e4367e307c2eba3d29232b65b6f44ae80827fbd18783a55acd7e"
  "5208ec3016cf12a7f1b1d62802cd488817aa3cef26fb7e672b52251cd40af276")

pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/${pkgname}"
  npm install
  grunt
}

package() {
  # Install License (License is in README)
  install -Dm644 $pkgname/README "$pkgdir/usr/share/licenses/$pkgname/README"

  # Install html file
  install -Dm644 $pkgname/bitaddress.org.html "$pkgdir/usr/share/$pkgname/bitaddress.org.html"

  # Install binary
  install -Dm755 bitaddress.sh "${pkgdir}/usr/bin/bitaddress"

  # Install desktop launcher
  install -Dm644 bitaddress.desktop "${pkgdir}/usr/share/applications/bitaddress.desktop"
}