# Contributor: Carlo Landmeter # Maintainer: Natanael Copa setvar pkgname = 'libshairport' setvar pkgver = '1.2.1.20121215' setvar _realver = '1.2.0.20310_lib' setvar pkgrel = '0' setvar pkgdesc = ""AirPort Express emulator"" setvar url = ""https://github.com/amejia1/libshairport"" setvar arch = ""all"" setvar license = ""GPL"" setvar depends = """" setvar depends_dev = ""avahi-dev libao-dev libressl-dev"" setvar makedepends = ""$depends_dev autoconf automake libtool"" setvar install = """" setvar subpackages = ""$pkgname-dev"" setvar source = ""http://mirrors.xbmc.org/build-deps/darwin-libs/libshairport-$_realver.tar.gz"" setvar _builddir = ""$srcdir"/libshairport-$_realver" proc prepare { local i cd $_builddir for i in $source { case (i) { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } } proc build { cd $_builddir autoreconf -vif ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ || return 1 make || return 1 } proc package { cd $_builddir make DESTDIR="$pkgdir" install } setvar sha512sums = ""514925e6942549e8349eec1167886961f77237b1310fa8833b8f2aa9cfa4873c20a9d358a1cb98c3e3fcc82b322ee1b1c3075cfb4a526636e2f76d7e5fbf42f4 libshairport-1.2.0.20310_lib.tar.gz""