diff options
author | 0xGingi | 2023-10-16 17:48:55 -0400 |
---|---|---|
committer | 0xGingi | 2023-10-16 17:48:55 -0400 |
commit | 70b6609cfb983a3e8509b9487fab6835f350d97d (patch) | |
tree | eb295f77e634cd9035de3e142142f03142a08605 | |
download | aur-70b6609cfb983a3e8509b9487fab6835f350d97d.tar.gz |
init
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 65 |
2 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4fbbfcb962ed --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = jellyfin-rpc-iced-git + pkgdesc = GUI For Jellyfin-RPC + pkgver = r10.ea59827 + pkgrel = 1 + url = https://github.com/Radiicall/jellyfin-rpc-iced + arch = any + license = GPL3 + makedepends = git + makedepends = cargo + depends = glibc + depends = gcc-libs + provides = jellyfin-rpc-iced + conflicts = jellyfin-rpc-iced + source = git+https://github.com/Radiicall/jellyfin-rpc-iced.git + md5sums = SKIP + +pkgname = jellyfin-rpc-iced-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..20f52b5b9943 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,65 @@ +# Maintainer: 0xGingi <0xgingi@0xgingi.com> +pkgname=('jellyfin-rpc-iced-git') +pkgver=r10.ea59827 +pkgrel=1 +pkgdesc="GUI For Jellyfin-RPC" +arch=('any') +url="https://github.com/Radiicall/jellyfin-rpc-iced" +license=('GPL3') +depends=('glibc' 'gcc-libs') +makedepends=('git' 'cargo') +provides=('jellyfin-rpc-iced') +conflicts=('jellyfin-rpc-iced') +source=("git+https://github.com/Radiicall/jellyfin-rpc-iced.git") +md5sums=('SKIP') + +pkgver() { + cd jellyfin-rpc-iced + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" +} + +prepare() { + cd jellyfin-rpc-iced + git submodule update --init --recursive + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + + +build() { + cd jellyfin-rpc-iced + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features +} + +check() { + cd jellyfin-rpc-iced + export RUSTUP_TOOLCHAIN=stable + cargo test --frozen --all-features + +} + +package() { + cd jellyfin-rpc-iced + install -Dm0755 "target/release/jellyfin-rpc-iced" -t "$pkgdir/usr/bin/" + install -Dm0644 ./README.md "$pkgdir/usr/share/doc/jellyfin-rpc-iced" + install -Dm0644 "jellyfin-rpc/example.json" -t "$pkgdir/usr/lib/jellyfin-rpc/" + + + echo + echo + echo ------------------------------------------------------------- + echo 'READ THE GITHUB DOCUMENTATION' + echo 'jellyfin-rpc-iced binary is located at /usr/bin/jellyfin-rpc-iced' + echo 'Example Config is located at /usr/lib/jellyfin-rpc/example.json' + if [ -d $XDG_CONFIG_HOME ]; then + echo "Place your main.json at $XDG_CONFIG_HOME/jellyfin-rpc/main.json" + else + echo "Place your main.json at /home/$USER/.config/jellyfin-rpc/main.json" + fi + echo + echo ------------------------------------------------------------- + echo + echo +} |