Skip to content

Commit

Permalink
Ports: Add Pacman port
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarbeutner committed Oct 24, 2022
1 parent 7d4387d commit eca4c51
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions Ports/AvailablePorts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:https://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/ |
Expand Down
25 changes: 25 additions & 0 deletions Ports/pacman/package.sh
Original file line number Diff line number Diff line change
@@ -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
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Gunnar Beutner <[email protected]>
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



7 changes: 7 additions & 0 deletions Ports/pacman/patches/ReadMe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Patches for pacman on SerenityOS

## `0001-Remove-incorrect-linker-library-path.patch`

Remove incorrect linker library path


0 comments on commit eca4c51

Please sign in to comment.