Package Details: open-ai-translator-bin 0.4.34-1

Git Clone URL: https://aur.archlinux.org/open-ai-translator-bin.git (read-only, click to copy)
Package Base: open-ai-translator-bin
Description: Browser extension and cross-platform desktop application for translation based on ChatGPT API.(Prebuilt version)基于 ChatGPT API 的划词翻译浏览器插件和跨平台桌面端应用
Upstream URL: https://github.com/openai-translator/openai-translator
Keywords: chatgpt openai translation translator translator-app
Licenses: AGPL-3.0-only
Conflicts: open-ai-translator, openai-translator
Provides: open-ai-translator
Submitter: zxp19821005
Maintainer: zxp19821005
Last Packager: zxp19821005
Votes: 4
Popularity: 0.005468
First Submitted: 2023-07-17 11:31 (UTC)
Last Updated: 2024-11-18 05:01 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

zxp19821005 commented on 2024-11-18 05:27 (UTC)

@neitsab I think you can see the git history: https://aur.archlinux.org/cgit/aur.git/commit/?h=open-ai-translator-bin&id=a18bd5448bb26c5490bd1fb96a95517e5f787332 Sometimes, the upstream uses another name to package it. I can correct it in the PKGBUILD. I have already commited a merge request. It is in the waiting state now.

neitsab commented on 2024-11-15 11:11 (UTC) (edited on 2024-11-15 11:12 (UTC) by neitsab)

Hi @zxp19821005, thanks for your reply!

Regarding permissions, and speaking for the current release, I have found that all files in the source deb have the correct permissions. But I can understand that you want to ensure this yourself. This risk I see is that if the source content changes (e.g. a new directory is added), you might not see it except if you manually check every release.

Regarding naming, it's interesting because my local /usr/share/icons/hicolor folder actually contains all those size-related directories, but in /usr/share/icons/hicolor/apps/ there's only org.remmina.Remmina-symbolic.svg and remmina-symbolic.svg, which led me to believe that dispatching the icons in all those size-named folders (as is done in the deb) is the "standard" approach to packaging those files. Although I can understand the way it's done currently in the PKGBUILD is cleaner, it seems to deviate from standard practice.

Btw, have you checked the PKGBUILD I uploaded for the other package and/or considered the merging request? There's no point in keeping two packages for the same binary download.

zxp19821005 commented on 2024-11-15 02:58 (UTC)

@neitsab There are two reasons. One is to avoid permission problems, the other is to standardize naming, try not to produce irregular naming, such as 256x256@2 in the /usr/share/icons/hicolor folder.

neitsab commented on 2024-11-14 12:45 (UTC) (edited on 2024-11-14 12:45 (UTC) by neitsab)

All right, I've just pushed my attempt at a "best of both world" PKGBUILD to openai-translator-bin. Check the diff here and if you're fine with it, I'd submit a merge request to the AUR admin to make you the maintainer of the resulting package.

neitsab commented on 2024-11-14 12:40 (UTC)

All right, I've just pushed my attempt at a best in class PKGBUILD for this package. Read the commit message or check the diff if you're interested in the changes made.

Unfortunately, after trying it out it turns I'm not too fond of it, so I'll disown it as well. Hopefully the two packages can be merged and @zxp19821005 accepts to be its maintainer.

namcap log for posterity:

openai-translator-bin W: ELF file ('usr/bin/open-ai-translator') lacks GNU_PROPERTY_X86_FEATURE_1_SHSTK.
openai-translator-bin W: Unused shared library '/usr/lib/libpango-1.0.so.0' by file ('usr/bin/open-ai-translator')
openai-translator-bin W: Unused shared library '/usr/lib/libcairo-gobject.so.2' by file ('usr/bin/open-ai-translator')
openai-translator-bin W: Dependency gtk3 detected and implicitly satisfied (libraries ['usr/lib/libgtk-3.so.0', 'usr/lib/libgdk-3.so.0'] needed in files ['usr/bin/open-ai-translator'])
openai-translator-bin W: Dependency java-runtime detected but optional (found class files usr/lib/open-ai-translator/resources/bin/ocr_apple, usr/lib/open-ai-translator/resources/bin/ocr_intel)
openai-translator-bin W: Dependency glibc detected and implicitly satisfied (libraries ['usr/lib/libm.so.6', 'usr/lib/libc.so.6', 'usr/lib/ld-linux-x86-64.so.2'] needed in files ['usr/bin/open-ai-translator'])
openai-translator-bin W: Dependency libxcb detected and implicitly satisfied (libraries ['usr/lib/libxcb.so.1'] needed in files ['usr/bin/open-ai-translator'])
openai-translator-bin W: Dependency libsoup3 detected and implicitly satisfied (libraries ['usr/lib/libsoup-3.0.so.0'] needed in files ['usr/bin/open-ai-translator'])
openai-translator-bin W: Dependency openssl detected and implicitly satisfied (libraries ['usr/lib/libssl.so.3', 'usr/lib/libcrypto.so.3'] needed in files ['usr/bin/open-ai-translator'])
openai-translator-bin W: Dependency gdk-pixbuf2 detected and implicitly satisfied (libraries ['usr/lib/libgdk_pixbuf-2.0.so.0'] needed in files ['usr/bin/open-ai-translator'])
openai-translator-bin W: Dependency glib2 detected and implicitly satisfied (libraries ['usr/lib/libgio-2.0.so.0', 'usr/lib/libglib-2.0.so.0', 'usr/lib/libgobject-2.0.so.0'] needed in files ['usr/bin/open-ai-translator'])
openai-translator-bin W: Dependency cairo detected and implicitly satisfied (libraries ['usr/lib/libcairo.so.2', 'usr/lib/libcairo-gobject.so.2'] needed in files ['usr/bin/open-ai-translator'])
openai-translator-bin W: Dependency hicolor-icon-theme detected and implicitly satisfied (needed for hicolor theme hierarchy)
openai-translator-bin W: Dependency gcc-libs detected and implicitly satisfied (libraries ['usr/lib/libgcc_s.so.1'] needed in files ['usr/bin/open-ai-translator'])
openai-translator-bin W: Dependency pango detected and implicitly satisfied (libraries ['usr/lib/libpango-1.0.so.0'] needed in files ['usr/bin/open-ai-translator'])

Cheers

neitsab commented on 2024-11-14 11:05 (UTC)

Also, why do you bother separately installing everything contained on the deb usr/ dir? It seems like you could simply unpack and copy and be done with it, which is the approach taken in the other packages. E.g. is there any specific reason to change the icon locations? The upstream version matches what I have on my system.

Cheers

xuanwo commented on 2024-11-14 10:24 (UTC)

Hi, @neitsab, have fun!

neitsab commented on 2024-11-14 10:24 (UTC) (edited on 2024-11-14 12:07 (UTC) by neitsab)

Thanks for your prompt reply @xuanwo. I've asked the maintainer of the other package whether they'd be interested in merging the two and continuing to maintain the result, since they seem to have done a good job at so far and to be following it closely.

In any case, thanks for your work and prompt reaction!

neitsab commented on 2024-11-14 10:20 (UTC) (edited on 2024-11-14 12:03 (UTC) by neitsab)

Hi @zxp19821005. Currently there are 2 binary AUR packages for openai-translator, this one and openai-translator-bin.

With the maintainer of the other package having just disowned it due to not using the software anymore, would you be interested in asking an AUR mod to merge the two packages together and continuing to maintain the result?

Cheers

xuanwo commented on 2024-11-14 10:13 (UTC)

Hi, @neitsab, thank you for bringing it up. I'm not using openai-translator-bin now and plan to disown it. You're welcome to take over and maintain it.