summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f9e6444ab967337be30e5bfa7a361e349a62f1a7 (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
# Submiter: AdrianoML <adriano.lols@gmail.com>

pkgname=steascree
pkgver=1.5.4.r12.g93a2436
pkgrel=1
pkgdesc="A QT screenshot \"injector\" for the steam screenshot uploader"
arch=('x86_64')
url="https://github.com/Foyl/SteaScree/"
source=('SteaScree::git+https://github.com/Foyl/SteaScree/' 'steascree.desktop')
license=('GPL3')
depends=('qt5-base')
makedepends=('git' 'cmake')
_gitname=SteaScree

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

build() {
  cd "$srcdir/$_gitname"

  qmake
  make
}

package() {
  cd "$srcdir/$_gitname"

  install -D -m755 SteaScree "$pkgdir/usr/bin/SteaScree"
  install -D -m644 "./res/icons/SteaScree.svg" "${pkgdir}/usr/share/icons/SteaScree.svg"
  install -D -m644 "${srcdir}/steascree.desktop" "${pkgdir}/usr/share/applications/steascree.desktop"
}

md5sums=('SKIP'
         'bc829e89369a4a1cf612be979f55b272')