Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add several new GUI packages and their dependencies #8390

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

supechicken
Copy link
Member

@supechicken supechicken commented Jun 14, 2023

Putting all of them into one PR as it is easier for me to work on it.

New packages and test status

  • discord
  • eclipse_cpp
  • eclipse_java
  • eclipse_php
  • slack
  • spotify
  • vscode
  • whatsapp_for_linux

Packages that need binaries

  • libayatana_*
  • whatsapp_for_linux

Run the following to get this pull request's changes locally for testing.

CREW_TESTING_REPO=https://github.com/supechicken/chromebrew.git CREW_TESTING_BRANCH=20230614_new_packages CREW_TESTING=1 crew update

@supechicken supechicken marked this pull request as draft June 14, 2023 15:32
description 'Discord is a proprietary, cross-platform, all-in-one voice and text chat application.'
homepage 'https://discord.com/'
version '0.0.27'
license 'Proprietary'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the true license?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about it. Snap said it is License: Proprietary and Arch said License: custom


def self.install
prefix = "#{CREW_DEST_PREFIX}/share/discord"
symlink_prefix = prefix.delete_prefix(CREW_DEST_DIR)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use a relative path for clarity?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean using relative path as target in symlinks?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like ./relative/path.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Relative path will not work with different directories, like ../share/discord will not work in /usr/local/share/applications

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about an absolute path then? Something like #{CREW_PREFIX}/path/to/file?

# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=eclipse-cpp
require 'package'

class Eclipse_cpp < Package
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see what you're trying to do here. Why not create an Eclipse.rb which allows the user to select which Eclipse version they would like to install like we do with the php and jdk packages? That leads to another question. Can these packages be installed concurrently or do they create a conflict with each other? In the latter case, would it make sense to add logic to prevent installing the others to avoid conflicts? EDIT: I see that logic already exists. Nice!

Copy link
Member Author

@supechicken supechicken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I pressed the wrong button😅

packages/eclipse_cpp.rb Outdated Show resolved Hide resolved

def self.install
prefix = "#{CREW_DEST_PREFIX}/share/slack"
symlink_prefix = prefix.delete_prefix(CREW_DEST_DIR)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use relative path for clarity?

packages/spotify.rb Outdated Show resolved Hide resolved
packages/vscode.rb Outdated Show resolved Hide resolved
packages/eclipse_php.rb Outdated Show resolved Hide resolved

def self.install
prefix = "#{CREW_DEST_PREFIX}/share/eclipse"
symlink_prefix = prefix.delete_prefix(CREW_DEST_DIR)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use relative path for clarity?


def self.install
prefix = "#{CREW_DEST_PREFIX}/share/eclipse"
symlink_prefix = prefix.delete_prefix(CREW_DEST_DIR)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use relative path for clarity?


def self.install
prefix = "#{CREW_DEST_PREFIX}/share/eclipse"
symlink_prefix = prefix.delete_prefix(CREW_DEST_DIR)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use relative path for clarity?


def self.install
prefix = "#{CREW_DEST_PREFIX}/share/code"
symlink_prefix = prefix.delete_prefix(CREW_DEST_DIR)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use relative path for clarity?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment above

Copy link
Collaborator

@uberhacker uberhacker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are nice additions @supechicken! Can we add entries to tools/packages.yaml and include the manifest filelists?

packages/vscode.rb Outdated Show resolved Hide resolved
packages/spotify.rb Outdated Show resolved Hide resolved
# handle icons
%w[16 22 24 32 48 64 128 256 512 1024].each do |size|
FileUtils.mkdir_p "#{icon_prefix}/#{size}x#{size}/apps"
FileUtils.cp Dir["plugins/org.eclipse.platform_#{version}*/eclipse#{size}.png"], "#{icon_prefix}/#{size}x#{size}/apps/eclipse.png"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the destination be a directory instead of a file?

@uberhacker
Copy link
Collaborator

It's been 3 months since this has seen any activity. Any update @supechicken?

require 'package'

class Eclipse_php < Package
description 'Highly extensible IDE (C/C++ version)'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change C/C++ to PHP?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants