summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5154714e51ca27ed952b53fd98500684f1a75e09 (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
# Maintainer: Heating Device <via DoT heatingdevice OT me DuT co m>
pkgname=tigcap
pkgver=latest
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 git)
optdepends=('libnotify: Notification support')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(git+https://github.com/theimgguru/tigcap.git)
noextract=()
sha1sums=('SKIP')

build() {
  cd "$pkgname"

  npm install
}

package() {
  cd "$pkgname"

  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"
}