Package Details: sdl3-git 3.1.1.r1.g58529c182-1

Git Clone URL: https://aur.archlinux.org/sdl3-git.git (read-only, click to copy)
Package Base: sdl3-git
Description: A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 3)
Upstream URL: https://www.libsdl.org
Licenses: zlib
Conflicts: sdl3
Provides: sdl3
Submitter: VitalyR
Maintainer: VitalyR (HurricanePootis)
Last Packager: HurricanePootis
Votes: 2
Popularity: 0.56
First Submitted: 2023-06-29 19:11 (UTC)
Last Updated: 2024-04-02 03:02 (UTC)

Latest Comments

VitalyR commented on 2023-09-28 09:44 (UTC)

Hi @HurricanePootis! I'm busy with other things so I can't update this package recently. I have added you as a co-maintainer. Please improve this package directly, thanks!

HurricanePootis commented on 2023-09-27 21:10 (UTC)

Hey, please remove prerelease from the pkgver(). pkver is not supposed to have any letters in it, only numbers. I have attached a patch script showing you what you need to change

diff --git a/PKGBUILD b/PKGBUILD
index 6c17f1d..bbd2990 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 # Contributor: Christer Solskogen <christer.solskogen@gmail.com>

 pkgname=sdl3-git
-pkgver=prerelease.3.0.0.r1826.g4d23eaf81
+pkgver=3.0.0.r2534.g4db2b968a
 pkgrel=1
 pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 3)"
 arch=('x86_64' 'aarch64' 'armv7h')
@@ -24,7 +24,7 @@ sha512sums=('SKIP')

 pkgver() {
   cd SDL
-  git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g'
+  git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/prerelease.//'
 }

 build() {

VitalyR commented on 2023-06-29 21:13 (UTC)

@FabioLolix Thanks for your advice! It's done!

FabioLolix commented on 2023-06-29 20:58 (UTC) (edited on 2023-06-29 20:58 (UTC) by FabioLolix)

Hello,

  • A license like MIT which isn't part of the licenses package need to be installed in "${pkgdir}/usr/share/licenses/${pkgname}"
  • you can remove the unusued validpgpkeys=()
  • SDL3 can be installed alongside SDL2, please use only provides=(sdl3) conflicts=(sdl3)

would you like to add .git to source (as source=("git+https://github.com/libsdl-org/SDL.git#branch=SDL2"))? I'm using or maintaining several pkgbuilds where SDL is a submodule, it give a problem with shared sources:

==> Retrieving sources...
==> ERROR: /mnt/1TBWDBLACK/source/SDL is not a clone of https://github.com/libsdl-org/SDL
    Aborting...

Would be nice if everyone harmonized to add it (downloading from GitLab give a warning without)