Package Details: gosumemory 1.3.8-1

Git Clone URL: https://aur.archlinux.org/gosumemory.git (read-only, click to copy)
Package Base: gosumemory
Description: Cross-Platform memory reader for osu!
Upstream URL: https://github.com/l3lackShark/gosumemory
Keywords: gosumemory osu
Licenses: GPL
Conflicts: gosumemory
Provides: gosumemory
Submitter: R0dn3yS
Maintainer: Malteser
Last Packager: Malteser
Votes: 0
Popularity: 0.000000
First Submitted: 2022-10-21 13:54 (UTC)
Last Updated: 2023-10-30 15:33 (UTC)

Latest Comments

su226 commented on 2024-01-13 09:27 (UTC)

Please use depends/source/sha256sums_arch for different architectures, e.g depends_x86_64/depends_i486. (I don't know if i386 is valid in PKGBUILD because ArchLinux32 only uses i486, i686 and pentium4.) And do not use unzip in prepare, just remove noextract and bsdtar works just fine. The unzip may cause an error because unzip is not in makedepends. Add a symlink at /usr/bin/gosumemory will make it more convenient. Also, according to the guideline, this package should be renamed to gosumemory-bin.

diff --git a/PKGBUILD b/PKGBUILD
index 75942d6..6cabdc3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
 # Contributer: Rodney van den Velden <rodney@dfagaming.nl>
 # Maintainer: Mateusz Krawczynski <matikrawczpl@gmail.com>

-pkgname=gosumemory
+pkgname=gosumemory-bin
 pkgver=1.3.8
 pkgrel=1
 pkgdesc="Cross-Platform memory reader for osu!"
-arch=(x86_64)
+arch=("x86_64" "i486")
 url="https://github.com/l3lackShark/gosumemory"
-license=("GPL")
-depends=("lib32-glibc")
+license=("GPL3")
+depends=("glibc")
 makedepends=()
 checkdepends=()
 optdepends=()
@@ -19,27 +19,26 @@ backup=()
 options=()
 install=
 changelog=
-source=("https://github.com/l3lackShark/${pkgname}/releases/download/${pkgver}/${pkgname}_linux_386.zip"
-        )
-noextract=("${pkgver}/${pkgname}_linux_386.zip")
-sha256sums=("1e52c647b1547a7b79c4843ce52b3ef9b304c17ed16a15076170443a003152d3")
+source_x86_64=("https://github.com/l3lackShark/gosumemory/releases/download/${pkgver}/gosumemory_linux_amd64.zip")
+source_i486=("https://github.com/l3lackShark/gosumemory/releases/download/${pkgver}/gosumemory_linux_386.zip")
+noextract=()
+sha256sums_x86_64=("cbf5f554c4831dab341ef9cd2d94e0cf2935c0a6bdfa2c61668a0be2dde80f7a")
+sha256sums_i486=("1e52c647b1547a7b79c4843ce52b3ef9b304c17ed16a15076170443a003152d3")
 validpgpkeys=()

-prepare() {
-   unzip -f "${pkgname}_linux_386.zip"
-}
-
 package() {
    # Install gosumemory binary
-   install -Dm755 "${srcdir}/${pkgname}" "${pkgdir}/opt/gosumemory/gosumemory"
+   install -Dm755 "${srcdir}/gosumemory" "${pkgdir}/opt/gosumemory/gosumemory"
+   install -d "${pkgdir}/usr/bin"
+   ln -s "/opt/gosumemory/gosumemory" "${pkgdir}/usr/bin/gosumemory"

    # Copy all files in "static" (these are the overlays)
    cp -r "${srcdir}/static" "${pkgdir}/opt/gosumemory"

    # Remove unnecessary files
    rm -rf "${pkgdir}/opt/gosumemory/static/.git"
-   rm -f "${pkgdir}/opt/gosumemory/static/LICENSE"

    # Install the LICENSE
-   install -Dm644 "${srcdir}/static/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+   install -d "${pkgdir}/usr/share/licenses/gosumemory"
+   mv "${pkgdir}/opt/gosumemory/static/LICENSE" "${pkgdir}/usr/share/licenses/gosumemory/LICENSE"
 }

atomo commented on 2022-11-06 00:51 (UTC)

Remove osu as a dependency. I use osu!stable with my own wine prefix and setup and the osu aur package doesn't seem to successfully work.