summaryrefslogtreecommitdiffstats
path: root/testing/ladspa/APKBUILD
blob: 573bccf9fd9aec625d063e75b79e07749ef4df1f (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ladspa
pkgver=1.13
pkgrel=0
pkgdesc="Linux Audio Developer's Simple Plug-in API, examples and tools"
url="http://www.ladspa.org/"
arch="all"
license="LGPLv2+"
depends=""
makedepends=""
install=""
subpackages="$pkgname-dev"
source="http://www.ladspa.org/download/ladspa_sdk_$pkgver.tgz
	0001-proper-build.patch
	0002-plugin-constructor-destructor.patch
	0003-plugindir.patch
	"

_builddir="$srcdir"/ladspa_sdk
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make -C src targets  || return 1
}

package() {
	cd "$_builddir"
	make -C src install DESTDIR="$pkgdir" || return 1
}

md5sums="671be3e1021d0722cadc7fb27054628e  ladspa_sdk_1.13.tgz
0e834af5f341081b772848ed3a753d5d  0001-proper-build.patch
4b5c8831519e7485f2dacc5663375872  0002-plugin-constructor-destructor.patch
95943ab38a96051ff4a6caf33182634c  0003-plugindir.patch"