summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 728ce58d362544ee62a7d8676a8ee07c8f7b2978 (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
# Maintainer: Heating Device <via DoT heatingdevice OT me DuT co m>
pkgname=tigcap
pkgver=0.0.2
pkgrel=1
pkgdesc="A powerful screenshot tool"
arch=('x86_64' 'armv7h')
url="https://github.com/theimgguru/tigcap/"
license=('GPL')
groups=()
depends=(maim)
makedepends=(npm nodejs)
optdepends=('libnotify: Notification support')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(https://github.com/theimgguru/tigcap/archive/master.tar.gz)
noextract=()
md5sums=() #autofill using updpkgsums

build() {
  cd "$pkgname-master"

  npm install
}

package() {
  cd "$pkgname-master"

  node_modules/.bin/electron-packager . TIGCap --no-prune --out out --asar --overwrite
  mkdir -p $pkgdir/opt/tigcap

  cp -dr --no-preserve=ownership out/TIGCap-linux-*/* "$pkgdir/opt/tigcap"
  mkdir -p "$pkgdir/usr/share/applications"
  install TIGCap.desktop "$pkgdir/usr/share/applications"
}
md5sums=('5b7e20e4c71d6176e0d40545591fd8ff')