summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 188a7d5c23118f7e50527e5e2431fa34e5fe67a6 (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
# Maintainer: tytan652 <tytan652@tytanium.xyz>

pkgname=obs-midi-mg
pkgver=3.0.3
pkgrel=1
epoch=1
pkgdesc="Allows MIDI devices to interact with OBS Studio"
arch=("x86_64" "aarch64")
url="https://obsproject.com/forum/resources/obs-midi-mg.1570/"
license=(GPL-2.0-or-later)
depends=("obs-studio>=28" "glibc" "gcc-libs" "qt6-base")
makedepends=("cmake" "git")
options=('debug')
source=(
  "$pkgname::git+https://github.com/nhielost/$pkgname.git#tag=$pkgver"
  "libremidi::git+https://github.com/jcelerier/libremidi.git"
)
sha256sums=(
  "SKIP"
  "SKIP"
)

prepare() {
  cd $pkgname

  git config submodule.libremidi.url $srcdir/libremidi
  git -c protocol.file.allow=always submodule update
}

build() {
  cmake -B build -S $pkgname \
  -DCMAKE_BUILD_TYPE=None \
  -DCMAKE_INSTALL_PREFIX='/usr' \
  -DCMAKE_INSTALL_LIBDIR=lib \
  -DENABLE_FRONTEND_API=ON \
  -DENABLE_QT=ON \
  -DLINUX_PORTABLE=OFF \
  -DQT_VERSION=6 \
  -DCMAKE_CXX_FLAGS="-Wno-error=deprecated-declarations -Wno-error=type-limits -Wno-error=shadow -Wno-error=conversion -Wno-error=float-conversion -Wno-error=unused-parameter" \
  -Wno-dev

  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}