From b5521c1d20bd9bacb2498937c3789f7d544263dd Mon Sep 17 00:00:00 2001 From: Pizza-Boy Date: Sat, 26 Mar 2016 12:29:15 -0400 Subject: [PATCH] New package: libspotify-12.1.51 --- common/shlibs | 1 + srcpkgs/libspotify-devel | 1 + srcpkgs/libspotify/template | 53 +++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 120000 srcpkgs/libspotify-devel create mode 100644 srcpkgs/libspotify/template diff --git a/common/shlibs b/common/shlibs index 0e7c185c5b..92e1d6809b 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2405,3 +2405,4 @@ libc++abi.so.1 libcxxabi-3.8.0_1 libfastjson.so.3 libfastjson-0.99.2_1 libdcadec.so.0 dcadec-0.2.0_1 libcmark.so.0 cmark-0.24.1_1 +libspotify.so.12 libspotify-12.1.51_1 diff --git a/srcpkgs/libspotify-devel b/srcpkgs/libspotify-devel new file mode 120000 index 0000000000..18ecf99e8e --- /dev/null +++ b/srcpkgs/libspotify-devel @@ -0,0 +1 @@ +libspotify \ No newline at end of file diff --git a/srcpkgs/libspotify/template b/srcpkgs/libspotify/template new file mode 100644 index 0000000000..95a0836f59 --- /dev/null +++ b/srcpkgs/libspotify/template @@ -0,0 +1,53 @@ +#Template for the 'libspotify' +pkgname=libspotify +version=12.1.51 +revision=1 +short_desc="Spotify library for building your own streaming apps" +maintainer="noah " +only_for_archs="x86_64 i686 armv6l armv7l" +wrksrc="libspotify-${version}-Linux-${XBPS_TARGET_MACHINE}-release" +repository="nonfree" +license="custom" +homepage="https://developer.spotify.com/technologies/libspotify/" +distfiles="http://developer.spotify.com/download/libspotify/libspotify-${version}-Linux-${XBPS_TARGET_MACHINE}-release.tar.gz" + +if [ "${XBPS_TARGET_MACHINE}" == "armv6l" ]; then + distfiles="https://developer.spotify.com/download/libspotify/libspotify-12.1.103-Linux-armv6-bcm2708hardfp-release.tar.gz" + version=12.1.103 + checksum=d658e6c1978fb46cf33376eb8367a51d024f4014f21beac1dd264532bcc54b24 + wrksrc="libspotify-${version}-Linux-armv6-bcm2708hardfp-release" +elif [ "${XBPS_TARGET_MACHINE}" == "armv7l" ]; then + distfiles="https://developer.spotify.com/download/libspotify/libspotify-${version}-Linux-armv7-release.tar.gz" + checksum=ad27b6c5aee5382b66b39bfea3b1752076b7abcc445979ce25c1ec9d7ff3aeda + wrksrc="libspotify-${version}-Linux-armv7-release" +elif [ "${XBPS_TARGET_MACHINE}" == "x86_64" ]; then + checksum=43a14e0732ba6ae30078fac105d0e2998d04d5f5c396a4968386bc4e22491058 +elif [ "${XBPS_TARGET_MACHINE}" == "i686" ]; then + checksum=941ab4ba10bcd6ec4e96127afd095a39e11bc955de0882734c97e4f588b155ae +fi + +do_build() { + sed -i 's/ldconfig//' Makefile +} + +do_install() { + make prefix=${DESTDIR}/usr install +} + +post_install() { + #Install our licenses + vlicense licenses.xhtml + vlicense LICENSE + #Fix the pkgconfig file + sed -i s:PKG_PREFIX:/usr:g lib/pkgconfig/libspotify.pc +} + +libspotify-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/*.so + vmove usr/lib/pkgconfig + } +}