-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
374306d
commit a5719e7
Showing
10 changed files
with
348 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
pkgname=switchfin | ||
pkgver=0.5.2 | ||
pkgrel=1 | ||
pkgdesc='Third-party native Jellyfin client' | ||
arch=('x86_64' 'aarch64') | ||
url='https:/dragonflylee/switchfin' | ||
license=('GPL-3.0-or-later') | ||
depends=('curl' 'dbus' 'gcc-libs' 'glibc' 'hicolor-icon-theme' 'libwebp' 'mpv' 'libxcb' 'tinyxml2' 'libpng') | ||
makedepends=('cmake' 'git' 'libxi' 'libxinerama' 'ninja' 'python' 'wayland-protocols') | ||
#source=("${pkgname}::git+$url.git") | ||
#sha256sums=('SKIP') | ||
|
||
build() { | ||
cmake -B "${srcdir}/build" -G Ninja \ | ||
-D CMAKE_BUILD_TYPE=Release \ | ||
-D CMAKE_INSTALL_PREFIX='/usr' \ | ||
-D CMAKE_INSTALL=ON \ | ||
-D PLATFORM_DESKTOP=ON \ | ||
-D USE_SYSTEM_CURL=ON \ | ||
-D USE_SYSTEM_TINYXML2=ON \ | ||
-D GLFW_BUILD_WAYLAND=ON \ | ||
-D GLFW_BUILD_X11=ON \ | ||
-S "../../.." | ||
cmake --build "${srcdir}/build" | ||
} | ||
|
||
package() { | ||
DESTDIR="${pkgdir}" cmake --install "${srcdir}/build" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
FILE="$(basename "$0")" | ||
|
||
# Enable the multilib repository | ||
cat << EOM >> /etc/pacman.conf | ||
[multilib] | ||
Include = /etc/pacman.d/mirrorlist | ||
EOM | ||
|
||
pacman -Syu --noconfirm --needed base-devel | ||
|
||
# Makepkg does not allow running as root | ||
# Create a new user `builder` | ||
# `builder` needs to have a home directory because some PKGBUILDs will try to | ||
# write to it (e.g. for cache) | ||
useradd builder -m -u $PUID | ||
# When installing dependencies, makepkg will use sudo | ||
# Give user `builder` passwordless sudo access | ||
echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | ||
|
||
sudo -H -u builder makepkg -scCf --noconfirm |
Oops, something went wrong.