blob: 6148454211a6eb73e51eef0f3fc822699a43661d (
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
|
# $Id: PKGBUILD 95507 2013-08-13 03:42:10Z speps $
# Maintainer : speps <speps at aur dot archlinux dot org>
pkgname=clalsadrv
pkgver=2.0.0
pkgrel=1
pkgdesc="C++ wrapper around the ALSA API"
arch=('i686' 'x86_64')
url="http://kokkinizita.linuxaudio.org/linuxaudio/"
license=('GPL')
depends=('clthreads' 'alsa-lib')
source=("${url}downloads/$pkgname-$pkgver.tar.bz2")
md5sums=('be123e1701e4b6c6300907df949bd71c')
prepare() {
cd "$pkgname-$pkgver/libs"
# use ldconfig locally
sed -i 's/ldconfig /&-N $(DESTDIR)/' Makefile
}
build() {
cd "$pkgname-$pkgver/libs"
# libs
make
# create lib link for building apps
ln -sf lib$pkgname.so.$pkgver lib$pkgname.so
# apps
cd ../apps
CXXFLAGS+=" -I../libs" \
LDFLAGS+=" -L../libs -lasound" \
make PREFIX=/usr
}
package(){
cd "$pkgname-$pkgver"
# libs
make -C libs DESTDIR="$pkgdir/" PREFIX=/usr LIBDIR=lib install
# apps
make -C apps DESTDIR="$pkgdir/" PREFIX=/usr LIBDIR=lib install
}
|