summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5345a0cc011d22902bff52d841046f0e11635c38 (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
# Maintainer: Fabio Loli <loli_fabio@protonmail.com> -> https://github.com/FabioLolix
# Contributor: Eric BĂ©langer <eric@archlinux.org>

pkgname=alsaplayer-git
pkgver=r1456.47670c7
pkgrel=1
pkgdesc="A heavily multi-threaded PCM player that tries to excercise the ALSA library and driver quite a bit"
arch=('i686' 'x86_64')
url="http://alsaplayer.sourceforge.net/"
license=('GPL')
depends=('desktop-file-utils')
makedepends=('gtk2' 'libid3tag' 'libvorbis' 'libmad' 'libmikmod' 'jack' 'mesa' 'audiofile' 'doxygen' 'git')
optdepends=('gtk2: for the gtk2 GUI interface'
            'libgl: for the OpenGL visual plugins'
            'jack: for JACK audio server output support'
            'audiofile: for support of various audio formats like AIFF, WAVE, .snd/.au'
            'libid3tag: for flac support'
            'flac: for flac support'
            'libmad: for MPEG support'
            'libsndfile: for sndfile support'
            'libvorbis: for ogg vorbis support'
            'libmikmod: for mod, s3m, it and xm formats supports')
provides=('alsaplayer')
conflicts=('alsaplayer')
source=("${pkgname}::git+https://github.com/alsaplayer/alsaplayer.git")
md5sums=('SKIP')

pkgver() {
  cd ${pkgname}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd ${srcdir}/${pkgname}
  sh autogen.sh
  ./configure --prefix=/usr --enable-audiofile
  make
}

package() {
  cd "${srcdir}/${pkgname}"
  make DESTDIR="${pkgdir}" install
}