summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 227d00204a6ef1e1c65d46d04fae849a8dc0c43a (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
# Maintainer: Lauri Niskanen <ape@ape3000.com>
# Contributor: sekret

pkgname=dsp-git
_pkgname=dsp
pkgver=234.25a4b3e
pkgrel=1
pkgdesc="An audio processing program with an interactive mode"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="https://github.com/bmc0/${_pkgname}"
license=('ISC')
makedepends=('git' 'fftw' 'libsndfile' 'ffmpeg' 'alsa-lib' 'libao' 'libmad' 'libpulse' 'ladspa' 'zita-convolver')
optdepends=('fftw: For resample and fir effects'
            'libsndfile: For sndfile input/output support'
            'ffmpeg: For ffmpeg input support'
            'alsa-lib: For alsa input/output support'
            'libao: For ao output support'
            'libmad: For mp3 input support'
            'libpulse: For PulseAudio input/ouput support'
            'ladspa: For building the LADSPA frontend'
            'zita-convolver: For zita_convolver effect')
source=(${_pkgname}::"git+https://github.com/bmc0/${_pkgname}.git")
md5sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_pkgname}"
	echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
	cd "${srcdir}/${_pkgname}"
	./configure --prefix=/usr
}

package() {
	cd "${srcdir}/${_pkgname}"
	make DESTDIR="${pkgdir}" install
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}