summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 67c32af41d228b9ba99b4d08b314d9feb147b04d (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
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=gst-plugin-viper4linux-git
_gitname=gst-plugin-viperfx
pkgver=r36.a5c1b03
pkgrel=2
pkgdesc="ViPER FX core wrapper plugin for gstreamer"
arch=('x86_64')
url="https://github.com/Audio4Linux/gst-plugin-viperfx"
license=('custom')
depends=('gst-plugins-base-libs' 'libviperfx')
makedepends=('git' 'cmake')
provides=("${pkgname%-git}" "$_gitname" 'libgstviperfx.so')
conflicts=("${pkgname%-git}" "$_gitname" 'gst-plugin-jamesdsp' )
source=('git+https://github.com/Audio4Linux/gst-plugin-viperfx.git')
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/$_gitname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cmake -B build -S "$_gitname" \
		-DCMAKE_BUILD_TYPE='None' \
		-DCMAKE_INSTALL_PREFIX='/usr' \
		-Wno-dev
	make -C build
}

package() {
	install -Dm755 build/libgstviperfx.so -t "$pkgdir/usr/lib/gstreamer-1.0"

	cd "$srcdir/$_gitname"
	install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
}