stuffs and things

This commit is contained in:
notfire 2024-12-01 13:51:51 -05:00
parent 61237d0fb5
commit eabf029990
Signed by: notfire
GPG key ID: 3AFDACAAB4E56B16
4 changed files with 57 additions and 4 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
pkgbuilds/*/.SRCINFO

View file

@ -1,8 +1,5 @@
# Maintainer: mia <mia@mia.jetzt>
# just here in case it doesn't get merged upstream
pkgname=iceshrimp.net-akkoma-fe-git
pkgver=3.10.0.40bece71
pkgver=3.10.0.590653fb
pkgrel=1
license=(AGPL)
arch=(any)

View file

@ -0,0 +1,30 @@
pkgname=mpv-listenbrainz-git
pkgver=r1.2392427
pkgrel=1
pkgdesc="MPV C plugin to scrobble to listenbrainz"
arch=('any')
url="https://git.notfire.cc/notfire/mpv-listenbrainz"
license=('GPL3')
groups=('mpv-plugins')
depends=('mpv' 'rust')
makedepends=('git')
provides=('mpv-listenbrainz')
install="mpv-listenbrainz.install"
source=("$pkgname::git+$url")
sha256sums=('SKIP')
options=('!lto' '!debug')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$pkgname"
install -Dm644 target/release/libmpv_listenbrainz.so -t "$pkgdir/usr/lib/mpv"
}
build() {
cd "$pkgname"
cargo build --release
}

View file

@ -0,0 +1,25 @@
pkgname=mpv-listenbrainz-git
post_install() {
echo
echo ">>> To use this script, specify the following option when starting mpv:"
echo
echo " --script /usr/lib/mpv/libmpv_listenbrainz.so"
echo
echo ">>> To use it automatically at every mpv startup:"
echo
echo " mkdir -p \$HOME/.config/mpv/scripts"
echo " ln -s /usr/lib/mpv/libmpv_listenbrainz.so \$HOME/.config/mpv/scripts/libmpv_listenbrainz.so"
echo
echo ">>> You will also need to specify a token and existing cache directory like:"
echo
echo " script-opts=listenbrainz-user-token={YOUR_USER_TOKEN},listenbrainz-cache-path=/home/yourusername/.cache"
echo " (in \$HOME/.config/mpv/mpv.conf)"
}
post_remove() {
echo ">>> If you linked $pkgname script into mpv config folder,"
echo " do not forget to delete it. Check with:"
echo
echo " ls \$HOME/.config/mpv/scripts"
}