Ports: Add Pacman port

This commit is contained in:
Gunnar Beutner 2022-10-23 12:52:22 +02:00 committed by Gunnar Beutner
parent 7d4387d383
commit eca4c51f78
Notes: sideshowbarker 2024-07-18 00:34:07 +09:00
4 changed files with 55 additions and 0 deletions

View file

@ -190,6 +190,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`opfor`](opfor/) | Half-Life: Opposing Force | 2022.07.14 | https://github.com/FWGS/hlsdk-portable |
| [`optipng`](optipng/) | OptiPNG | 0.7.7 | http://optipng.sourceforge.net/ |
| [`p7zip`](p7zip/) | p7zip | 17.04 | https://github.com/jinfeihan57/p7zip |
| [`pacman`](pacman/) | Pacman | b6241a3 | https://github.com/ebuc99/pacman |
| [`patch`](patch/) | patch (GNU) | 2.7.6 | https://savannah.gnu.org/projects/patch/ |
| [`pcre`](pcre/) | Perl-compatible Regular Expressions (PCRE) | 8.45 | https://www.pcre.org/ |
| [`pcre2`](pcre2/) | Perl-compatible Regular Expressions (PCRE2) | 10.40 | https://www.pcre.org/ |

25
Ports/pacman/package.sh Executable file
View file

@ -0,0 +1,25 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='pacman'
version='b6241a373cc09f021c2ab29714eca5f9e33463f8'
files="https://codeload.github.com/ebuc99/pacman/zip/${version} pacman.zip d688f75d33c7bf4f217bfcaf0d5ee507fd73bb233d77303927d15b54988f0231"
auth_type='sha256'
useconfigure='true'
depends=(
'SDL2'
'SDL2_image'
'SDL2_ttf'
'SDL2_mixer'
)
configopts=(
"--with-sdl-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
)
use_fresh_config_sub='true'
config_sub_paths=('config.sub')
launcher_name='Pacman'
launcher_category='Games'
launcher_command='/usr/local/bin/pacman'
icon_file='data/gfx/pacman_desktop.png'
pre_patch() {
run ./autogen.sh
}

View file

@ -0,0 +1,22 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Gunnar Beutner <gunnar@beutner.name>
Date: Sun, 23 Oct 2022 12:49:01 +0200
Subject: [PATCH] Remove incorrect linker library path
---
src/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 51a1cc1c819a1f3be4ab245abd2c8f8af3560571..2eee4b103359c8061626024a9ec1654aad4a2933 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -81,7 +81,7 @@ pacman_LDFLAGS = -I/usr/include/SDL2 -D_REENTRANT #$(SDL2_CFLAGS)
pacman_LDADD = \
$(SDL2_LIBS) \
-lSDL2_mixer \
- -L/usr/lib64 -lSDL2
+ -lSDL2

View file

@ -0,0 +1,7 @@
# Patches for pacman on SerenityOS
## `0001-Remove-incorrect-linker-library-path.patch`
Remove incorrect linker library path