Package Details: plasma-desktop-git 6.0.80_r11524.gf3a8cd50e-1

Git Clone URL: https://aur.archlinux.org/plasma-desktop-git.git (read-only, click to copy)
Package Base: plasma-desktop-git
Description: KDE Plasma Desktop
Upstream URL: https://kde.org/plasma-desktop/
Licenses: LGPL-2.0-or-later
Groups: plasma-git
Conflicts: knetattach, knetattach-git, plasma-desktop, user-manager, user-manager-git
Provides: knetattach, knetattach-git, plasma-desktop, user-manager, user-manager-git
Replaces: knetattach-git, user-manager-git
Submitter: arojas
Maintainer: IslandC0der (chaotic-aur)
Last Packager: IslandC0der
Votes: 9
Popularity: 0.000002
First Submitted: 2014-03-31 06:31 (UTC)
Last Updated: 2024-03-02 13:37 (UTC)

Required by (50)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 12 Next › Last »

IslandC0der commented on 2021-08-10 16:44 (UTC)

Awesome! :D

Neko-san commented on 2021-08-10 07:05 (UTC)

@IslandC0der That works, thanks!

IslandC0der commented on 2021-08-09 22:18 (UTC)

@Neko-san Ahhh, I see the issue:

Replace $(git rev-parse master) != $(git rev-parse master@{upstream}) with $(git rev-parse HEAD) != $(git rev-parse HEAD@{upstream})

Neko-san commented on 2021-08-09 21:55 (UTC) (edited on 2021-08-09 22:15 (UTC) by Neko-san)

@IslandC0der I had wrote it in CodeOSS (VS Code), so Idk I did as you suggested and just floored it out of the bracket scope, and it seemed to have worked, but now it's throwing fatal errors:

==> updating remote 'packages'
From https://github.com/archlinux/svntogit-packages
 * branch            packages/plasma-desktop -> FETCH_HEAD
==> updating remote 'community'
From https://github.com/archlinux/svntogit-community
 * branch            packages/dolphin-emu -> FETCH_HEAD
fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: no such branch: 'master'
fatal: ambiguous argument 'origin': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: no such branch: 'master'
fatal: ambiguous argument 'origin': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

IslandC0der commented on 2021-08-09 21:49 (UTC)

@Neko-san Hmm, is EOF indented with spaces? Doing a hexdump of what you sent, it says there are 6 spaces before it (but maybe you were using tabs and it automatically converts to spaces).

You have to either use tabs, or not indent it at all (i.e. have EOF at the very beginning of the line).

Neko-san commented on 2021-08-09 21:33 (UTC)

@IslandC0der This still didn't work for me for some reason :/

#!/usr/bin/env bash

asp update
for dir in */; do (
  cd $dir
  git fetch

  ## If there are upstream changes, apply them, apply ours and rebuild
  if [[ $(git rev-parse master) != $(git rev-parse master@{upstream}) ]]; then
    git reset --hard origin
    ## sed or EOF cat commands go here
    if [ $dir ==  "plasma-desktop" ]; then
      cat <<- \EOF >> PKGBUILD
      build() {
        cmake -B build -S $pkgname-$pkgver \
          -DCMAKE_INSTALL_LIBEXECDIR=lib \
          -DBUILD_TESTING=OFF \
          -DCMAKE_CXX_COMPILER=clang++ \
          -DCMAKE_C_COMPILER=clang \
          -DUSE_NATIVE_INSTRUCTIONS=ON \
          -DCMAKE_BUILD_TYPE=Release
        sed -i 's/O2/O3/g' "$srcdir/build/CMakeCache.txt"
        sed -i 's/O1/O3/g' "$srcdir/build/CMakeCache.txt"
        sed -i 's/-march=x86-64/-march=native/g' "$srcdir/build/CMakeCache.txt"
        sed -i 's/-mtune=generic/-mtune=native/g' "$srcdir/build/CMakeCache.txt"
        CXXFLAGS+=" -minline-all-stringops -flto=16 -flto-compression-level=19 -fuse-linker-plugin -stdlib=libc++ -lstdc++"
        CFLAGS+=" -minline-all-stringops -flto=16 -flto-compression-level=19 -fuse-linker-plugin"
        cmake --build build -j 16
      }
      EOF

    elif [ $dir == "dolphin-emu" ]; then
      cat <<- \EOF >> PKGBUILD
      build() {
        cmake -S dolphin-emu -B build \
          -DCMAKE_BUILD_TYPE=Release \
          -DCMAKE_INSTALL_PREFIX=/usr \
          -DUSE_SHARED_ENET=ON \
          -DCMAKE_CXX_COMPILER=clang++ \
            -DCMAKE_C_COMPILER=clang \
          -DUSE_NATIVE_INSTRUCTIONS=ON \
          -DDISTRIBUTOR=archlinux.org
        sed -i 's/O2/O3/g' "$srcdir/build/CMakeCache.txt"
        sed -i 's/O1/O3/g' "$srcdir/build/CMakeCache.txt"
        sed -i 's/-march=x86-64/-march=native/g' "$srcdir/build/CMakeCache.txt"
        sed -i 's/-mtune=generic/-mtune=native/g' "$srcdir/build/CMakeCache.txt"
        CXXFLAGS+=" -minline-all-stringops -flto=16 -fuse-linker-plugin -flto-compression-level=19 -stdlib=libc++ -lstdc++"
        CFLAGS+=" -minline-all-stringops -flto=16 -fuse-linker-plugin -flto-compression-level=19"
        make -j 16 -C build
      }
      EOF

    cd trunk
    makepkg -sfcCri --noconfirm
    rm -rf ../*.pkg.tar.zst
    fi
  fi
) done

IslandC0der commented on 2021-08-08 21:04 (UTC) (edited on 2021-08-08 21:04 (UTC) by IslandC0der)

@Neko-san Ohh, you cannot indent the EOF token (otherwise it doesn't recognize it).

You have to either remove the indentation on that line, or use cat <<- \EOF >> PKGBUILD instead of cat << \EOF >> PKGBUILD, which will make it ignore tab indentation (but not spaces).

Neko-san commented on 2021-08-08 01:32 (UTC)

@IslandC0der Yeah, sorry, here:

./aspUpdate.sh: line 58: warning: here-document at line 13 delimited by end-of-file (wanted `EOF')
./aspUpdate.sh: line 59: syntax error: unexpected end of file

IslandC0der commented on 2021-08-08 01:01 (UTC)

@Neko-san Hmmm, do you get any error message?

Neko-san commented on 2021-08-07 06:41 (UTC)

@IslandC0der And say I try to adapt the script to include other asp packages like this:

#!/usr/bin/env bash

asp update
for dir in */; do (
  cd $dir
  git fetch

  ## If there are upstream changes, apply them, apply ours and rebuild
  if [[ $(git rev-parse master) != $(git rev-parse master@{upstream}) ]]; then
    git reset --hard origin
    ## sed or EOF cat commands go here
    if [ $dir ==  "plasma-desktop" ]; then
      cat << \EOF >> PKGBUILD
      build() {
        cmake -B build -S $pkgname-$pkgver \
          -DCMAKE_INSTALL_LIBEXECDIR=lib \
          -DBUILD_TESTING=OFF \
          -DCMAKE_CXX_COMPILER=clang++ \
          -DCMAKE_C_COMPILER=clang \
          -DUSE_NATIVE_INSTRUCTIONS=ON \
          -DCMAKE_BUILD_TYPE=Release
        sed -i 's/O2/O3/g' "$srcdir/build/CMakeCache.txt"
        sed -i 's/O1/O3/g' "$srcdir/build/CMakeCache.txt"
        sed -i 's/-march=x86-64/-march=native/g' "$srcdir/build/CMakeCache.txt"
        sed -i 's/-mtune=generic/-mtune=native/g' "$srcdir/build/CMakeCache.txt"
        CXXFLAGS+=" -minline-all-stringops -flto=16 -flto-compression-level=19 -fuse-linker-plugin -stdlib=libc++ -lstdc++"
        CFLAGS+=" -minline-all-stringops -flto=16 -flto-compression-level=19 -fuse-linker-plugin"
        cmake --build build -j 16
      }
      EOF

    elif [ $dir == "dolphin-emu" ]; then
      cat << \EOF >> PKGBUILD
      build() {
        cmake -S dolphin-emu -B build \
          -DCMAKE_BUILD_TYPE=Release \
          -DCMAKE_INSTALL_PREFIX=/usr \
          -DUSE_SHARED_ENET=ON \
          -DCMAKE_CXX_COMPILER=clang++ \
            -DCMAKE_C_COMPILER=clang \
          -DUSE_NATIVE_INSTRUCTIONS=ON \
          -DDISTRIBUTOR=archlinux.org
        sed -i 's/O2/O3/g' "$srcdir/build/CMakeCache.txt"
        sed -i 's/O1/O3/g' "$srcdir/build/CMakeCache.txt"
        sed -i 's/-march=x86-64/-march=native/g' "$srcdir/build/CMakeCache.txt"
        sed -i 's/-mtune=generic/-mtune=native/g' "$srcdir/build/CMakeCache.txt"
        CXXFLAGS+=" -minline-all-stringops -flto=16 -fuse-linker-plugin -flto-compression-level=19 -stdlib=libc++ -lstdc++"
        CFLAGS+=" -minline-all-stringops -flto=16 -fuse-linker-plugin -flto-compression-level=19"
        make -j 16 -C build
      }
      EOF

    fi

    cd trunk
    makepkg -srci
  fi
) done

This fails, and I don't understand why?