Skip to content

Commit af76f63

Browse files
committed
Added QCMA and VitaMTP
1 parent 5acbdbb commit af76f63

3 files changed

Lines changed: 88 additions & 0 deletions

File tree

srcpkgs/qcma/template

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Template file for 'qcma'
2+
pkgname=qcma
3+
version=0.5.1
4+
revision=1
5+
build_style=qmake
6+
QT=qt6
7+
hostmakedepends="qt6-base-devel qt6-tools pkg-config"
8+
makedepends="qt6-base-devel qt6-tools-devel ffmpeg-devel libusb-devel vitamtp-devel libnotify-devel glib-devel"
9+
depends="vitamtp"
10+
noverifyrdeps=yes
11+
short_desc="Content Manager Assistant for PlayStation Vita"
12+
maintainer="Toi <toi@email.com>"
13+
license="GPL-3.0-or-later"
14+
homepage="https://github.com/codestation/qcma"
15+
distfiles="https://github.com/codestation/qcma/archive/26ad896.tar.gz>qcma-0.5.1.tar.gz"
16+
checksum="f2345df7ede974315dfeae3de8f6afaebdc983c2d6df32e14c29370af3618448"
17+
18+
pre_build() {
19+
sed -i 's/return ui->itemPicture->pixmap() ? \*ui->itemPicture->pixmap() : QPixmap();/return ui->itemPicture->pixmap();/' gui/forms/backupitem.cpp
20+
sed -i 's/if((stream_index = av_find_best_stream(pFormatCtx, (AVMediaType)codec, -1, -1, \&av_codec, 0)) < 0)/AVCodec *tmp_codec = NULL; if((stream_index = av_find_best_stream(pFormatCtx, (AVMediaType)codec, -1, -1, \&tmp_codec, 0)) < 0)/' common/avdecoder.cpp
21+
sed -i 's/av_codec = av_codec;/av_codec = tmp_codec;/' common/avdecoder.cpp
22+
sed -i 's/int result = sws_scale_frame(sws_ctx, pFrameRGB, pFrame);/int result = sws_scale(sws_ctx, (const uint8_t *const *)pFrame->data, pFrame->linesize, 0, pCodecCtx->height, pFrameRGB->data, pFrameRGB->linesize);/' common/avdecoder.cpp
23+
/usr/lib/qt6/bin/lrelease qcma.pro
24+
}

srcpkgs/vitamtp-devel/template

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Template file for 'vitamtp'
2+
pkgname=vitamtp
3+
version=0.9.3
4+
revision=1
5+
build_style=gnu-configure
6+
configure_args="--prefix=/usr"
7+
hostmakedepends="pkg-config autoconf automake libtool gettext gettext-devel"
8+
makedepends="libusb-devel libxml2-devel"
9+
shlib_provides="libvitamtp.so.5"
10+
short_desc="Library for MTP-like communication with PlayStation Vita"
11+
maintainer="LazyPreview cranatise10@ploud.fr"
12+
license="LGPL-2.1-or-later"
13+
homepage="https://github.com/codestation/vitamtp"
14+
distfiles="https://github.com/codestation/vitamtp/archive/refs/heads/master.tar.gz"
15+
checksum="01c344e93a39f3c5cd5725c12e58adbeb779045c0fe67e604e4b25c766d41803"
16+
17+
pre_configure() {
18+
rm -f m4/iconv.m4
19+
cp /usr/share/aclocal/iconv.m4 m4/ 2>/dev/null || true
20+
autoreconf -fi
21+
}
22+
23+
vitamtp-devel_package() {
24+
short_desc+=" - development files"
25+
depends="${sourcepkg}>=${version}_${revision}"
26+
pkg_install() {
27+
vmove usr/include
28+
vmove usr/lib64/pkgconfig
29+
vmove "usr/lib64/*.a"
30+
vmove "usr/lib64/libvitamtp.so"
31+
}
32+
}

srcpkgs/vitamtp/template

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Template file for 'vitamtp'
2+
pkgname=vitamtp
3+
version=0.9.3
4+
revision=1
5+
build_style=gnu-configure
6+
configure_args="--prefix=/usr"
7+
hostmakedepends="pkg-config autoconf automake libtool gettext gettext-devel"
8+
makedepends="libusb-devel libxml2-devel"
9+
shlib_provides="libvitamtp.so.5"
10+
short_desc="Library for MTP-like communication with PlayStation Vita"
11+
maintainer="LazyPreview cranatise10@ploud.fr"
12+
license="LGPL-2.1-or-later"
13+
homepage="https://github.com/codestation/vitamtp"
14+
distfiles="https://github.com/codestation/vitamtp/archive/refs/heads/master.tar.gz"
15+
checksum="01c344e93a39f3c5cd5725c12e58adbeb779045c0fe67e604e4b25c766d41803"
16+
17+
pre_configure() {
18+
rm -f m4/iconv.m4
19+
cp /usr/share/aclocal/iconv.m4 m4/ 2>/dev/null || true
20+
autoreconf -fi
21+
}
22+
23+
vitamtp-devel_package() {
24+
short_desc+=" - development files"
25+
depends="${sourcepkg}>=${version}_${revision}"
26+
pkg_install() {
27+
vmove usr/include
28+
vmove usr/lib64/pkgconfig
29+
vmove "usr/lib64/*.a"
30+
vmove "usr/lib64/libvitamtp.so"
31+
}
32+
}

0 commit comments

Comments
 (0)