diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-12-26 11:15:41 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-12-26 11:17:32 +0000 |
commit | 375cb8b726e38c1c6749d17b7df5c345fd8c7abc (patch) | |
tree | fe56958672b56f985afbc13e56c16c747ec37c7c /community/libshairport/APKBUILD | |
parent | cd752a29a9b4293e8a707959f30c9a8536d34dfc (diff) | |
download | aports-375cb8b726e38c1c6749d17b7df5c345fd8c7abc.tar.bz2 aports-375cb8b726e38c1c6749d17b7df5c345fd8c7abc.tar.xz |
community/libshairport: use openssl
Modernize APKBUILD, update license, add check()
Diffstat (limited to 'community/libshairport/APKBUILD')
-rw-r--r-- | community/libshairport/APKBUILD | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/community/libshairport/APKBUILD b/community/libshairport/APKBUILD index 9c9ec569b8..fefe337b6d 100644 --- a/community/libshairport/APKBUILD +++ b/community/libshairport/APKBUILD @@ -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 } |