summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 53c4299446f1274dcfe1394f9cfdea8d55ff2f4a (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: codestation <codestation404@gmail.com>

pkgname=qcma-git
pkgver=0.4.1.13.g65f0eab
pkgrel=1
pkgdesc="Content Manager Assistant for the PS Vita. (GIT version)"
arch=('x86_64')
url='https://github.com/codestation/qcma'
license=('GPL')
depends=(
  'gcc-libs' # libgcc_s.so libstdc++.so
  'glibc' # libc.so libm.so
  'qt5-base' # libQt5Core.so libQt5Gui.so libQt5Network.so libQt5Sql.so
  'libnotify' 'libnotify.so'
  'libvitamtp' # libvitamtp.so
  'libx11' # libX11.so
  'libva' 'libva-drm.so' 'libva-x11.so' 'libva.so'
  'libvdpau' 'libvdpau.so'
  'glib2' 'libgobject-2.0.so'
  'bzip2' 'libbz2.so'
  'xz' 'liblzma.so'
  'zlib' 'libz.so'
  'hicolor-icon-theme'
)
makedepends=(
  'git'
  'qt5-tools'
)
conflicts=(
  'qcma-appindicator-git'
  'qcma-kdenotifier-git'
)
source=(
  'git+https://github.com/codestation/qcma.git'
  'https://ffmpeg.org/releases/ffmpeg-3.4.13.tar.xz'
  'mathops_fix.patch::https://git.videolan.org/?p=ffmpeg.git;a=patch;h=effadce6c756247ea8bae32dc13bb3e6f464f0eb'
)
sha256sums=(
  'SKIP'
  'SKIP'
  'SKIP'
)
options=('debug')

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

prepare() {
  mkdir -p build

  patch -d ffmpeg-3.4.13 -p1 -i "${srcdir}/mathops_fix.patch"
}

build() {

  cd ffmpeg-3.4.13
  ./configure \
    --prefix="${srcdir}/fakeroot" \
    --enable-libpulse \
    --enable-indev=alsa,pulse,oss,fbdev \
    --enable-outdev=alsa,pulse,oss,fbdev \
    --disable-programs \
    --disable-doc
  make
  make install

  cd "${srcdir}/build"
  export PKG_CONFIG_LIBDIR="${srcdir}/fakeroot/lib/pkgconfig"
  export PKG_CONFIG_PATH="${PKG_CONFIG_LIBDIR}:/usr/lib/pkgconfig:/usr/share/pkgconfig"
  lrelease-qt5 ../qcma/common/resources/translations/*.ts
  qmake-qt5 ../qcma PREFIX=/usr
  make
}

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