add shairport-sync package

This commit is contained in:
Anton Schubert 2016-06-04 17:46:32 +02:00
parent 76123df122
commit d51da5ea2a
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,2 @@
DIST 2.8.4.1.tar.gz 246811 SHA256 80feef768e178a575e5aa9f1f8e1d0b95c1d316f449a76a0ee3c06c65500916c SHA512 b307b96ad5788171a71cf9d7a84b7b244af39b6860140c2b36f8c30c34670275f04274b898792cd10dd63f8c6a8d1571070aacab2dc3e0e7465a0ff5c1f2cdf2 WHIRLPOOL 2c6da94f80d8d5beaed71604c24e073e74a27f02814b8d761c4847a5acfe5758845e7cdac2763da326e8a51b4bc0cb077452314a9bcd6f89a9264fb8aea5ffb7
EBUILD shairport-sync-2.8.4.1.ebuild 932 SHA256 6e1142de9428902c22cfb33b25becd615da873f13acf1ee4814910db139c6add SHA512 cac5f62c2b11ac50c1adeb3eb7c0e9cb54870e32337f22d73840fc9aea048754914b7f4a4f0652b825399edf900669e1aee5f123e3298d1aa69536fc2ba2c84e WHIRLPOOL 0d133f0cc25d6bbc7e77ea54223e20e8b90f2e6362cee985d44dff95a755579c36b56804e43ce07fa2cd384fe684d043b6c491e78c10815905632758fb5b1627

View file

@ -0,0 +1,48 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit autotools user
DESCRIPTION="Emulates an AirPort Express to stream music from i-devices"
HOMEPAGE="https://github.com/mikebrady/shairport-sync"
SRC_URI="https://github.com/mikebrady/${PN}/archive/${PV}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="avahi soxr"
DEPEND="dev-libs/openssl
media-libs/alsa-lib
dev-libs/libdaemon
dev-libs/popt
dev-libs/libconfig
avahi? ( net-dns/avahi )
soxr? ( media-libs/soxr )"
RDEPEND="${DEPEND}"
pkg_setup() {
enewuser shairport-sync -1 -1 -1 audio
}
src_prepare() {
eapply_user
eautoreconf
}
src_configure() {
econf \
$(use_with avahi) \
$(use_with soxr) \
--with-ssl=openssl \
--with-alsa
}
#src_install() {
# dobin shairport
# dodoc README.md
# newconfd "${FILESDIR}"/${PN}.confd ${PN}
# newinitd "${FILESDIR}"/${PN}.initd ${PN}
#}