summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 61e944fb08cf1424f2e27e6f89f556b5e26ccdc1 (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
43
44
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: codestation <codestation404@gmail.com>

pkgname=qcma-git
pkgver=v0.4.1.0.g6044fbf
pkgrel=1
pkgdesc="Content Manager Assistant for the PS Vita. (GIT version)"
arch=('i686' 'x86_64')
url='https://github.com/codestation/qcma'
license=('GPL')
depends=('ffmpeg'
         'qt5-base'
         'libnotify'
         'libvitamtp'
         'hicolor-icon-theme'
         )
makedepends=('git'
             'qt5-tools'
             )
conflicts=('qcma-appindicator-git'
           'qcma-kdenotifier-git'
           )
source=('git+https://github.com/codestation/qcma.git')
sha1sums=('SKIP')

pkgver() {
  cd qcma
  echo "$(git describe --long --tags | tr - .)"
}

prepare() {
  mkdir -p build
}

build() {
  cd build
  lrelease-qt5 "${srcdir}/qcma/common/resources/translations/"*.ts
  qmake-qt5 "${srcdir}/qcma/qcma.pro" PREFIX=/usr
  make
}

package() {
  make -C build INSTALL_ROOT="${pkgdir}" install
}