blob: 4829d098fb82c36f597e364a9535b4f4e14af9f0 (
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
|
# Maintainer: Rucker <ruckeraur at proton dot me>
# Contributor: Katoitalia
pkgname=obs-plugin-tuna-git
pkgver=1.9.9.r3.g6cf08dd
pkgrel=1
arch=(x86_64)
pkgdesc="Song information plugin for obs-studio git version"
url="https://github.com/univrsal/tuna"
license=('GPL2')
depends=("obs-studio")
makedepends=("clang" "cmake" "git")
conflicts=("obs-plugin-tuna-bin" "obs-plugin-tuna" "obs-tuna")
provides=("obs-plugin-tuna=$pkgver")
source=("$pkgname::git+https://github.com/univrsal/tuna.git"
"git+https://github.com/taglib/taglib"
"git+https://github.com/MusicPlayerDaemon/libmpdclient")
md5sums=("SKIP" "SKIP" "SKIP")
pkgver() {
cd $pkgname
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd $pkgname
git config submodule.deps/taglib.url $srcdir/taglib
git config --global protocol.file.allow always
git config submodule.deps/libmpdclient.url $srcdir/libmpdclient
git submodule update
}
build() {
cd $pkgname
mkdir -p build; cd build
cmake \
-DCMAKE_INSTALL_PREFIX="$srcdir"/tuna/install ..
make -j$(($(nproc)+1))
make install
}
package() {
cd $srcdir
mkdir -p $pkgdir/usr/lib/obs-plugins/
mv $srcdir/tuna/install/lib/obs-plugins/tuna.so $pkgdir/usr/lib/obs-plugins/
mkdir -p $pkgdir/usr/share/obs/obs-plugins/
mv $srcdir/tuna/install/share/obs/obs-plugins/tuna $pkgdir/usr/share/obs/obs-plugins/tuna
}
|