summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e7a60960b9514c8961d16aba48c9567d1e962512 (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
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: codestation <codestation404@gmail.com>

pkgbase=qcma-git
pkgname=('qcma-git' 'qcma-kdenotifier-git')
pkgver=v0.3.9.5.g7ed5bac
pkgrel=1
pkgdesc="Content Manager Assistant for the PS Vita. (GIT version)"
arch=("i686" "x86_64")
url="https://github.com/codestation/qcma"
license=('GPL')
makedepends=('git' 'qt5-tools' 'qt5-base' 'vitamtpmod' 'ffmpeg' 'libnotify' 'knotifications')
source=('git+https://github.com/codestation/qcma.git')
sha1sums=('SKIP')

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

prepare() {
  mkdir -p build-qcma
  mkdir -p build-qcma-kdenotifier
}

build() {
  pushd build-qcma &> /dev/null
  lrelease-qt5 ../qcma/resources/translations/*.ts
  qmake-qt5 ../qcma/qcma.pro PREFIX=/usr
  make
  popd &> /dev/null
  pushd build-qcma-kdenotifier &> /dev/null
  lrelease-qt5 ../qcma/resources/translations/*.ts
  qmake-qt5 ../qcma/qcma_kdenotifier.pro PREFIX="/usr" CONFIG+=ENABLE_KNOTIFICATIONS
  popd &> /dev/null
}

package_qcma-git() {
  pkgdesc="Content Manager Assistant for the PS Vita. (GIT Version)"
  depends=('ffmpeg' 'qt5-base' 'libnotify' 'vitamtpmod' 'hicolor-icon-theme')
  conflicts=('qcma')
  provides=('qcma')
  install=qcma-git.install

  make -C build-qcma INSTALL_ROOT="${pkgdir}" install
}

package_qcma-kdenotifier-git() {
  pkgdesc="Content Manager Assistant for the PS Vita. (KDE notifier) (GIT Version)"
  depends=('qcma-git' 'knotifications')
  conflicts=('qcma-kdenotifier')
  provides=('qcma-kdenotifier')

  make -C build-qcma-kdenotifier INSTALL_ROOT="${pkgdir}" install
}