summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cb3d570fc1eafebd2735f52dd23eac3d268a3f84 (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
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: robertfoster
# Contributor: Bleuzen <supgesu@gmail.com>
# Contributor: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
# Contributor: Wellington <wellingtonwallace@gmail.com>

# This is the last release supporting Pulseaudio. The following PulseEffects
# releases will be based on the new Pipewire multimedia server and only fixes
# to critical bugs will be backported to the legacy pulseaudio branch

pkgname=('pulseeffects-legacy-git' 'gst-plugins-pulseeffects-legacy-git')
pkgbase=pulseeffects-legacy-git
pkgver=4.8.4.r10.gc63827fc
pkgrel=2
pkgdesc='Audio Effects for Pulseaudio applications'
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/wwmm/pulseeffects"
license=('GPL3')
depends=('gtk3' 'gtkmm3' 'glibmm' 'pulseaudio' 'gstreamer' 'gst-plugin-gtk'
         'gst-plugins-bad' 'lilv' 'boost-libs' 'libsigc++' 'libsndfile'
         'libsamplerate' 'zita-convolver' 'libebur128')
makedepends=('git' 'meson' 'boost' 'itstool' 'appstream-glib' 'zam-plugins'
             'rubberband' 'rnnoise-git')
source=('git+https://github.com/wwmm/pulseeffects.git#branch=pulseaudio-legacy')
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/pulseeffects"
	printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')"
}

build() {
	arch-meson pulseeffects build
	meson compile -C build
}

package_pulseeffects-legacy-git() {
	depends=('gtk3' 'gtkmm3' 'glibmm' 'pulseaudio' 'gstreamer' 'gst-plugin-gtk'
             'gst-plugins-bad' 'lilv' 'boost-libs' 'libsigc++'
             'gst-plugins-pulseeffects-legacy')
	optdepends=('calf: limiter, compressor exciter, bass enhancer and others'
                'lsp-plugins: equalizer, delay'
                'rubberband: pitch shifting'
                'zam-plugins: maximizer'
                'yelp: in-app help')
    provides=("${pkgname%-git}" 'pulseeffects')
	conflicts=("${pkgname%-git}" 'pulseeffects')

	DESTDIR="$pkgdir" meson install -C build
	mv "$pkgdir/usr/lib" .
}

package_gst-plugins-pulseeffects-legacy-git() {
	pkgdesc+=" - gstreamer plugins"
	depends=('gst-plugins-base' 'gstreamer' 'libebur128' 'librnnoise'
	         'libsamplerate' 'libsndfile' 'zita-convolver')
    provides=("${pkgname%-git}"
              'gst-plugins-pulseeffects'
              'libgstpernnoise.so'
              'libgstpecrystalizer.so'
              'libgstpecrystalizer.so'
              'libgstpeconvolver.so'
              'libgstpeautogain.so'
              'libgstpeadapter.so')
	conflicts=("${pkgname%-git}" 'gst-plugins-pulseeffects')

	install -d "$pkgdir/usr"
	mv lib "$pkgdir/usr"
}