From e8f1f5b34526763c05ec669b826481869e32f64c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 10 Mar 2021 16:25:44 +0100 Subject: spotifyd: add as new package --- spotifyd/APKBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 spotifyd/APKBUILD (limited to 'spotifyd/APKBUILD') diff --git a/spotifyd/APKBUILD b/spotifyd/APKBUILD new file mode 100644 index 0000000..42aaedd --- /dev/null +++ b/spotifyd/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Karel Kočí +# Maintainer: Karel Kočí +pkgname=spotifyd +pkgver=0.3.2 +pkgrel=1 +pkgdesc="A spotify daemon" +url="https://github.com/Spotifyd/spotifyd" +arch="all" +license="GPLv3" +options="!check net" + +makedepends="cargo alsa-lib-dev openssl-dev" + +source=" + spotifyd.init + spotifyd.conf + $pkgname-$pkgver.tar.gz::https://github.com/Spotifyd/spotifyd/archive/v$pkgver.tar.gz +" +install="$pkgname.pre-install" + +export CARGO_HOME="$srcdir/cargo" + +build() { + cargo build --release +} + +package() { + cargo install --path . --root="$pkgdir"/usr + install -D -m 755 "$srcdir"/spotifyd.init "$pkgdir"/etc/init.d/spotifyd + install -D -m 644 "$srcdir"/spotifyd.conf "$pkgdir"/etc/spotifyd.conf +} + +sha512sums="151a01af3dd6833d0e058178e8839dd9e53ab9f43a3acd1d86200affc14b457fc00f7500f3dd69635b79a057d70325260264a5d043ac433b1ef4af355b94ad88 spotifyd.init +37bf97478d5c9ed9bb9495efeb244c049a4c5eb7a75c19e431a29acdbca6e0e79ddd1089ffbd62c42e402063ab84cd6604bac4db1d8c98e613ca78fb35209ca3 spotifyd.conf +1a50169a23df67061cb59e8f90a6969517f38fd7d72445ecbaa8213f6300529eaa3b4d78836c339e9adbf7c9b95396e7d3120d522e2bb861ea111c25dc342d41 spotifyd-0.3.2.tar.gz" -- cgit v1.2.3