summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c645b85b07d08b24f22ff05a1681650b5bb25a03 (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
# Maintainer: HÃ¥vard Pettersson <mail@haavard.me>
# Contributor: Andrew Stubbs <andrew.stubbs@gmail.com>

pkgname=etcher
pkgver=1.4.1
pkgrel=1
pkgdesc='Burn images to SD cards & USB drives, safe & easy'
arch=(x86_64)
url='http://www.etcher.io/'
license=(apache)
depends=(gtk2 libxtst libxss gconf nss alsa-lib)
optdepends=('libnotify: for notifications'
            'speech-dispatcher: for text-to-speech')
makedepends=(npm)
source=("https://github.com/resin-io/etcher/archive/v$pkgver.tar.gz")
sha256sums=('41bb2e325b45e5adc00e32bd2c0b1e9bbd0f8dfe328e8237fc7d4175fde2bd60')

build() {
  cd etcher-$pkgver
  make electron-develop
  make electron-installer-debian RELEASE_TYPE=production
}

package() {
  cd etcher-$pkgver/dist

  ar x etcher-electron_${pkgver}_amd64.deb data.tar.xz
  tar -xf data.tar.xz -C "$pkgdir"

  mkdir -p "$pkgdir"/usr/bin
  ln -s /opt/Etcher/etcher-electron "$pkgdir"/usr/bin/etcher-electron
}

# vim:set ts=2 sw=2 et: