-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPKGBUILD
37 lines (29 loc) · 952 Bytes
/
PKGBUILD
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
# big thanks to sabotage linux devs for the patches
pkgname=alsa-utils
pkgver=1.0.28
pkgrel=1
pkgdesc="ALSA sound library"
arch=('i686' 'x86_64')
url="http://alsa-project.org"
license=('GPL')
source=("ftp://ftp.alsa-project.org/pub/utils/$pkgname-$pkgver.tar.bz2"
"alsa-utils_mixer_widget.patch"
"alsa-utils_signal_h.patch"
"alsa-utils_portable-mutex.patch")
md5sums=("SKIP" "SKIP" "SKIP" "SKIP")
depends=("ncurses" "alsa-lib")
build() {
cd "$pkgname-$pkgver"
#patch -p1 < "$srcdir"/alsa-utils_signal_h.patch
#patch -p1 < "$srcdir"/alsa-utils_portable-mutex.patch
patch -p1 < "$srcdir"/alsa-utils_mixer_widget.patch
CFLAGS="$CFLAGS -I/include/ncursesw -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -D_GNU_SOURCE" ./configure \
--prefix=/ --disable-nls --disable-xmlto --disable-alsatest \
--with-curses=ncursesw --sbindir=/bin
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
rm -r "$pkgdir"/lib
}