summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2020-03-18 18:09:01 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2020-03-18 18:09:01 -0700
commit284b1229a51f9f28fa43fb73925b61a2b359deda (patch)
treea3da81067674afa4929e50cf3bb2345f517b2e41
downloadqcma-284b1229a51f9f28fa43fb73925b61a2b359deda.tar.xz
Initial commit
-rw-r--r--PKGBUILD36
-rw-r--r--qcma-avdecoder.patch13
2 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..be44de8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}
diff --git a/qcma-avdecoder.patch b/qcma-avdecoder.patch
new file mode 100644
index 0000000..ec67f84
--- /dev/null
+++ b/qcma-avdecoder.patch
@@ -0,0 +1,13 @@
+diff --git a/common/avdecoder.cpp b/common/avdecoder.cpp
+index 6e4306d..8c667b2 100644
+--- a/common/avdecoder.cpp
++++ b/common/avdecoder.cpp
+@@ -350,7 +350,7 @@ QByteArray AVDecoder::WriteJPEG(AVCodecContext *pCodecCtx, AVFrame *pFrame, int
+
+ pOCodecCtx->mb_lmin = pOCodecCtx->qmin * FF_QP2LAMBDA;
+ pOCodecCtx->mb_lmax = pOCodecCtx->qmax * FF_QP2LAMBDA;
+- pOCodecCtx->flags = CODEC_FLAG_QSCALE;
++ pOCodecCtx->flags = AV_CODEC_FLAG_QSCALE;
+ pOCodecCtx->global_quality = pOCodecCtx->qmin * FF_QP2LAMBDA;
+
+ pFrame->pts = 1;