-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKGBUILD
More file actions
37 lines (35 loc) · 1.34 KB
/
PKGBUILD
File metadata and controls
37 lines (35 loc) · 1.34 KB
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
pkgname=Matrix_CPP
pkgver=1.0.16
pkgrel=1
pkgdesc="Video processing with Matrix effect"
arch=('x86_64')
url="https://github.com/Bit-Scripts/Matrix_CPP"
license=('MIT')
depends=('linux-zen-headers' 'linux-lts-headers' 'linux-hardened-headers' 'linux-headers' 'dkms' 'qt6-base' 'qt6-multimedia' 'qt6-multimedia-ffmpeg' 'qt6-multimedia-gstreamer' 'qt6-wayland' 'opencv' 'ffmpeg' 'v4l2loopback-dkms' 'v4l2loopback-utils' 'v4l-utils')
makedepends=('cmake')
source=("v${pkgver}.tar.gz::https://github.com/Bit-Scripts/Matrix_CPP/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('aaee4fb95315500590991811b65890b9b55e182ea81b27e470510531480e0e33')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir -p build
cd build
cmake ..
make
}
package() {
if [[ "$(uname -r)" == *linux-zen* ]]; then
depends+=('linux-zen-headers')
elif [[ "$(uname -r)" == *linux-lts* ]]; then
depends+=('linux-lts-headers')
elif [[ "$(uname -r)" == *linux-hardened* ]]; then
depends+=('linux-hardened-headers')
elif [[ "$(uname -r)" == *linux* ]]; then
depends+=('linux-headers')
fi
cd "${srcdir}/${pkgname}-${pkgver}/build"
mkdir -p "$pkgdir/usr/local/bin/matrixresources"
mkdir -p "$pkgdir/usr/bin"
ln -s "$pkgdir/usr/local/bin/Matrix" "$pkgdir/usr/bin/"
ln -s "$pkgdir/usr/local/bin/matrixresources" "$pkgdir/usr/bin/"
make DESTDIR="${pkgdir}" install
}