Commit 375cb8b7 authored by Leonardo Arena's avatar Leonardo Arena

community/libshairport: use openssl

Modernize APKBUILD, update license, add check()
parent cd752a29
......@@ -3,32 +3,26 @@
pkgname=libshairport
pkgver=1.2.1.20121215
_realver=1.2.0.20310_lib
pkgrel=0
pkgrel=1
pkgdesc="AirPort Express emulator"
url="https://github.com/amejia1/libshairport"
arch="all"
license="GPL"
license="MIT"
depends=""
depends_dev="avahi-dev libao-dev libressl-dev"
depends_dev="avahi-dev libao-dev openssl-dev"
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="$pkgname-dev"
source="http://mirrors.xbmc.org/build-deps/darwin-libs/libshairport-$_realver.tar.gz"
builddir="$srcdir"/libshairport-$_realver
_builddir="$srcdir"/libshairport-$_realver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
default_prepare
autoreconf -vif
}
build() {
cd "$_builddir"
autoreconf -vif
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -36,13 +30,17 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
--localstatedir=/var
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$_builddir"
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment