summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f154f2fcf8a1f06aa74379beed47610dd0b6527a (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
# Maintainer: Pulshen Sudokamikaze <pulshencode@outlook.com>

pkgname=lib32-alsaequal
pkgver=0.6
pkgrel=16
pkgdesc="A real-time adjustable equalizer plugin for ALSA sound server."
arch=('x86_64')
url="http://www.thedigitalmachine.net/alsaequal.html"
license=('GPL2')
depends=('lib32-alsa-lib' 'lib32-caps')
optdepends=('lib32-swh-plugins: to use the mbeq equalizer (15-band)')
install='alsaequal.install'

source=("https://launchpad.net/ubuntu/+archive/primary/+files/alsaequal_${pkgver}.orig.tar.bz2"
        'false_error.patch'
		'alsaequal.patch'
        'fix-lib32-makefile.patch'
		'lib32-alsaequal_caps_9.x.patch')

md5sums=('d2edc7710c72cbf3ab297c414e35ebda'
         '15bbaaa51bf3e01fdc1af1cd3b0b53e3'
         '40911a2eedc8fdb85b68bb81ccea65eb'
         '9b58c23a264e59b672eccbf3f8c0663b'
         '212e7c8bf7cb2f83b476894dde58812b')

prepare() {
	cd "$srcdir/${pkgname##*-}"

	patch -Np0 -i ../false_error.patch
	patch -Np0 -i ../alsaequal.patch
	patch -Np1 -i ../fix-lib32-makefile.patch
	patch -Np0 -i ../lib32-alsaequal_caps_9.x.patch

	make clean
}

build() {
	cd "${srcdir}/${pkgname##*-}"

	make
}

package() {
	cd "${srcdir}/${pkgname##*-}"

	mkdir -p "$pkgdir"/usr/lib32/alsa-lib/

	make DESTDIR="$pkgdir" install
}