19 Commits

Author SHA1 Message Date
64442c5d41 Disable arch in master 2023-01-06 17:47:29 -05:00
3cc0f91766 Fix derps 2023-01-06 17:41:37 -05:00
9ba279265c Arch work 2023-01-06 17:38:34 -05:00
7067625a9f Arch work 2023-01-06 17:36:55 -05:00
ac920e9a9c Arch work 2023-01-06 17:18:05 -05:00
6aefd2bd49 Arch work 2023-01-06 17:09:17 -05:00
4b964aec52 Arch work 2023-01-06 16:39:51 -05:00
4788957cc9 Arch work 2023-01-06 16:38:20 -05:00
1b3bf6ae67 Arch work 2023-01-06 16:37:23 -05:00
fec7e80361 Arch work 2023-01-06 16:35:57 -05:00
2309b4b1d5 Fix pushd 2023-01-06 16:26:44 -05:00
a243550902 Fix derp 2023-01-06 16:25:58 -05:00
652a872d95 Disable builds on Arch 2023-01-06 16:24:42 -05:00
610d35f80f Move arch to dev branch 2023-01-06 16:13:01 -05:00
db8f561a61 Early arch work 2023-01-06 16:12:09 -05:00
1105a5bad1 Merge branch 'master' into dev 2023-01-06 16:10:16 -05:00
2c712d4924 v1.0-rc4 release 2023-01-06 15:18:51 -05:00
eee5a37ab2 Use case for ID checks 2023-01-03 10:21:27 -05:00
5934d94f5d Redundant return 2023-01-03 10:09:58 -05:00

View File

@@ -16,7 +16,7 @@
shopt -s extglob shopt -s extglob
declare -g SCRIPTVERSION="1.0-rc3" declare -g SCRIPTVERSION="1.0-rc4"
declare -g OUTPUTDIR="$PWD/output" declare -g OUTPUTDIR="$PWD/output"
declare -g BOARDURL="https://yabb.jriver.com/interact/index.php/board,76.0.html" # MC30 (Buster) declare -g BOARDURL="https://yabb.jriver.com/interact/index.php/board,76.0.html" # MC30 (Buster)
@@ -108,7 +108,6 @@ askOk() {
declare response declare response
read -r -p "$* [y/N]: " response read -r -p "$* [y/N]: " response
[[ "${response,,}" =~ ^(yes|y)$ ]] [[ "${response,,}" =~ ^(yes|y)$ ]]
return
} }
@@ -254,9 +253,9 @@ init() {
debug "Detected host platform: $ID $VERSION_ID" debug "Detected host platform: $ID $VERSION_ID"
# normalize ID # normalize ID and set distro-specific vars
case "$ID" in case "$ID" in
arch|debian) debian|arch)
;; ;;
centos|fedora) centos|fedora)
if hash dnf &>/dev/null; then if hash dnf &>/dev/null; then
@@ -383,8 +382,14 @@ setMCVersion() {
if [[ "$MCVERSION_SOURCE" == "user input" ]]; then if [[ "$MCVERSION_SOURCE" == "user input" ]]; then
# Append explicit package version when user provides --mcversion # Append explicit package version when user provides --mcversion
[[ "$ID" =~ ^(fedora|centos|suse)$ ]] && MCPKG+="-$MCVERSION" case "$ID" in
[[ "$ID" =~ ^(debian|ubuntu)$ ]] && MCPKG+="=$MCVERSION" fedora|centos|suse)
MCPKG+="-$MCVERSION"
;;
debian|ubuntu)
MCPKG+="=$MCVERSION"
;;
esac
fi fi
echo "Using MC version $MCVERSION determined by $MCVERSION_SOURCE." echo "Using MC version $MCVERSION determined by $MCVERSION_SOURCE."
[[ "$MCVERSION_SOURCE" == "user input" ]] || echo "To override, use --mcversion." [[ "$MCVERSION_SOURCE" == "user input" ]] || echo "To override, use --mcversion."
@@ -831,32 +836,49 @@ installMesa() {
installMCARCH() { installMCARCH() {
debug "Running: ${FUNCNAME[0]}" debug "Running: ${FUNCNAME[0]}"
echo "Arch install under construction" echo "Arch install under construction"
[[ ! -d "$OUTPUTDIR/PKGBUILD/" ]] && mkdir -p "$OUTPUTDIR/PKGBUILD" # [[ -d "$OUTPUTDIR/PKGBUILD" ]] || mkdir -p "$OUTPUTDIR/PKGBUILD"
cat <<-EOF > "$OUTPUTDIR/PKGBUILD/mediacenter.pkgbuild" # cat <<-EOF > "$OUTPUTDIR/PKGBUILD/mediacenter.pkgbuild"
pkgname=mediacenter$MVERSION # pkgname=mediacenter$MVERSION
pkgver=$MCVERSION # pkgver=$MCVERSION
pkgrel=1 # pkgrel=1
pkgdesc="The Most Comprehensive Media Software" # pkgdesc="The Most Comprehensive Media Software"
arch=('x86_64') # arch=('x86_64')
url="http://www.jriver.com/" # url="http://www.jriver.com/"
license=('custom') # license=('custom')
depends=('alsa-lib' 'gcc-libs' 'libx11' 'libxext' 'libxcb' 'libxau' 'libxdmcp' 'util-linux' 'libxext' 'gtk3') # depends=('alsa-lib' 'gcc-libs' 'libx11' 'libxext' 'libxcb' 'libxau' 'libxdmcp' 'util-linux' 'libxext' 'gtk3')
optdepends=('mesa-libgl: nouveau video support' # optdepends=(
'nvidia-libgl: nvidia video support' # 'mesa-libgl: nouveau video support'
'nvidia-utils: nvidia vulkan support' # 'nvidia-libgl: nvidia video support'
'vulkan-intel: intel vulkan support' # 'nvidia-utils: nvidia vulkan support'
'vulkan-radeon: amd vulkan support' # 'vulkan-intel: intel vulkan support'
'vorbis-tools: ogg vorbis support' # 'vulkan-radeon: amd vulkan support'
'musepack-tools: musepack support' # 'vorbis-tools: ogg vorbis support'
) # 'musepack-tools: musepack support'
source=("http://files.jriver.com/mediacenter/channels/v30/latest/MediaCenter-$MCVERSION-amd64.deb" 'License.txt') # )
# source=("http://files.jriver.com/mediacenter/channels/v30/latest/MediaCenter-$MCVERSION-amd64.deb" 'License.txt')
package() { # package() {
cd "\$srcdir" # cd "\$srcdir"
bsdtar xf data.tar.xz -C "\$pkgdir" # bsdtar xf data.tar.xz -C "\$pkgdir"
install -Dm644 "License.txt" "\$pkgdir/usr/share/licenses/\$pkgname/COPYING" # install -Dm644 "License.txt" "\$pkgdir/usr/share/licenses/\$pkgname/COPYING"
} # }
EOF # EOF
# pushd "$OUTPUTDIR/PKGBUILD" &>/dev/null || return
# makepkg_cmd="makepkg
# --syncdeps
# --clean
# --cleanbuild
# --force
# --install
# -p mediacenter.pkgbuild"
# if ! eval "${makepkg_cmd}"; then
# echo "makepkg failed"
# exit
# fi
# popd &>/dev/null || return
} }
@@ -1661,8 +1683,8 @@ main() {
if ! grep ^deb /etc/apt/sources.list|grep -q universe; then if ! grep ^deb /etc/apt/sources.list|grep -q universe; then
echo "Adding universe repository" echo "Adding universe repository"
declare add_universe_cmd="sudo add-apt-repository -y universe" declare add_universe_cmd="sudo add-apt-repository -y universe"
#debug "$add_universe_cmd" || add_universe_cmd+=" &>/dev/null" debug "$add_universe_cmd" || add_universe_cmd+=" &>/dev/null"
if ! exec "$add_universe_cmd"; then if ! eval "$add_universe_cmd"; then
err "Adding universe repository failed" err "Adding universe repository failed"
fi fi
fi fi
@@ -1700,7 +1722,7 @@ main() {
fi fi
fi fi
if (( BUILD_SWITCH )); then if (( BUILD_SWITCH )) && [[ $ID != "arch" ]]; then
installPackage "wget" installPackage "wget"
acquireDeb acquireDeb
if [[ "$TARGET" =~ (centos|fedora|suse) ]]; then if [[ "$TARGET" =~ (centos|fedora|suse) ]]; then