updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / squeezeslave / PKGBUILD
blobada3d4618a23f4ebdeabb93de92487f9040ec839
1 # Maintainer: Mika Fischer <mika.fischer@zoopnet.de>
2 pkgname=squeezeslave
3 pkgver=1.1
4 pkgrel=3
5 pkgdesc="Light weight streaming audio player for Logitech's Squeezebox audio server"
6 arch=('i686' 'x86_64')
7 url="http://wiki.slimdevices.com/index.php/SqueezeSlave"
8 license=('GPL')
9 depends=('lirc-utils')
10 makedepends=('alsa-lib' 'lirc-utils' 'ncurses' 'patch' 'subversion')
12 # Use __svn* instead of _svn* to prevent makepkg from overwriting ${pkgver}
13 __svntrunk="http://squeezeslave.googlecode.com/svn/squeezeslave/branches/squeezeslave-1.1-253"
14 __svnmod="squeezeslave-1.1"
15 __svnrev=256
17 build() {
18     cd "${srcdir}"
20     msg "Connecting to SVN server...."
21     if [ -d "${__svnmod}/.svn" ]; then
22         (cd "${__svnmod}" && svn up -r "${__svnrev}")
23     else
24         svn co "${__svntrunk}" --config-dir ./ -r "${__svnrev}" "${__svnmod}"
25     fi
26     msg "SVN checkout done or server timeout"
28     msg "Starting build..."
29     rm -rf "${srcdir}/${__svnmod}-build"
30     cp -r "${srcdir}/${__svnmod}" "${srcdir}/${__svnmod}-build"
31     cd "${srcdir}/${__svnmod}-build"
33     if [[ "${CARCH}" == "x86_64" ]]; then
34         make -f makefile.linux26-i64-alsa-display
35     elif [[ "${CARCH}" == "i686" ]]; then
36         make -f makefile.linux26-alsa-display
37     else
38         echo "Unknown architecture: ${CARCH}"
39         return 1
40     fi
43 package() {
44     install -D -m755 "${srcdir}/${__svnmod}-build/bin/squeezeslave" "${pkgdir}/usr/bin/squeezeslave"