summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: be44de893dfa052b72c65e72a9a8bcefb1ddcb9a (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
# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
# Maintainer (AUR): codestation <codestation404@gmail.com>

# # I maintain this because:
# I use it and it is not in an official repo

pkgname=qcma
pkgver=0.4.1
pkgrel=2
pkgdesc="Content Manager Assistant for the PS Vita"
arch=("i686" "x86_64")
url="https://github.com/codestation/qcma"
license=('GPL')
makedepends=('qt5-tools')
depends=('qt5-base' 'libvitamtp>=2.5.9' 'ffmpeg' 'libnotify')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/codestation/${pkgname}/archive/v${pkgver}.tar.gz"
        "qcma-avdecoder.patch")
sha256sums=('f107b6cfd69f7346cd1e7a1f125f866f12d1e1a63a22f44981043f58d8811f80' '1a8acfe28c5bb1ead66805da76b09d28cf858ea55858ccc5e6362b1c053fd9d9')

prepare() {
   cd $pkgname-$pkgver
   patch -Np1 -i "${srcdir}/qcma-avdecoder.patch"
}

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  lrelease-qt5 common/resources/translations/*.ts
  qmake-qt5 qcma.pro PREFIX="/usr"
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make INSTALL_ROOT="${pkgdir}" install
}