diff options
author | Paul Bastian | 2020-12-28 09:49:14 +0100 |
---|---|---|
committer | Paul Bastian | 2020-12-28 09:49:14 +0100 |
commit | 83c3530c90ac2ae1071562473f95a9a6722b3612 (patch) | |
tree | 9d20f762d7c7050b752564d09177ebf77698b312 | |
download | aur-83c3530c90ac2ae1071562473f95a9a6722b3612.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bf3236b3f8e9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = librespot-java-git + pkgdesc = A Spotify Connect enabled headless client + pkgver = v1.5.2.r26.g26818c6 + pkgrel = 1 + url = https://github.com/librespot-org/librespot-java + arch = any + license = APACHE + makedepends = git + makedepends = maven + depends = java-runtime + conflicts = librespot-java + backup = etc/librespot-java/config.toml + source = librespot-java-git::git+https://github.com/librespot-org/librespot-java#branch=dev + source = https://raw.githubusercontent.com/paulbastian/aur/master/librespot-java/config.toml + source = https://raw.githubusercontent.com/paulbastian/aur/master/librespot-java/librespot-java.service + sha256sums = SKIP + sha256sums = 732a44a47780420484fdddff0c2ec206f58af3b4eddd71aa871e5b755890e3ee + sha256sums = 4d0b3452768be2eb380f6ae49c5d7fdfb0a095f699f71ce2a1697260b0c89b3a + +pkgname = librespot-java-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b297c9950f39 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Paul Bastian <paul.bastian@posteo.de> +pkgname=librespot-java-git +pkgver=v1.5.2.r26.g26818c6 +pkgrel=1 +pkgdesc="A Spotify Connect enabled headless client" +arch=('any') +url="https://github.com/librespot-org/librespot-java" +license=('APACHE') +depends=('java-runtime') +makedepends=('git' + 'maven') +conflicts=('librespot-java') +backup=(etc/librespot-java/config.toml) +source=("${pkgname}::git+https://github.com/librespot-org/librespot-java#branch=dev" + "https://raw.githubusercontent.com/paulbastian/aur/master/librespot-java/config.toml" + "https://raw.githubusercontent.com/paulbastian/aur/master/librespot-java/librespot-java.service") +sha256sums=('SKIP' + '732a44a47780420484fdddff0c2ec206f58af3b4eddd71aa871e5b755890e3ee' + '4d0b3452768be2eb380f6ae49c5d7fdfb0a095f699f71ce2a1697260b0c89b3a') + +pkgver() { + cd "$pkgname" +printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')" +} + +build() { + cd "$srcdir/${pkgname}" + mvn package +} + +package() { + cd "$srcdir" + + mkdir -p "${pkgdir}"/usr/share/java/librespot + install -D -m644 ${pkgname}/player/target/librespot-player-*-SNAPSHOT.jar "$pkgdir/usr/share/java/librespot/librespot-player.jar" + + mkdir -p "${pkgdir}"/etc/librespot-java + install -m644 -Dt "$pkgdir/etc/librespot-java" config.toml + + install -m644 -Dt "$pkgdir/usr/lib/systemd/system" librespot-java.service +} |