summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2022-10-23 12:52:22 +0200
committerGunnar Beutner <gunnar@beutner.name>2022-10-24 03:25:20 +0200
commiteca4c51f788aa663c3be52147e23ee49dad964b6 (patch)
tree71fbeafb909bde4ac1456b85dfc891b7080717b3 /Ports
parent7d4387d383e3c14e79d6d9edeaa98236779e92b5 (diff)
downloadserenity-eca4c51f788aa663c3be52147e23ee49dad964b6.zip
Ports: Add Pacman port
Diffstat (limited to 'Ports')
-rw-r--r--Ports/AvailablePorts.md1
-rwxr-xr-xPorts/pacman/package.sh25
-rw-r--r--Ports/pacman/patches/0001-Remove-incorrect-linker-library-path.patch22
-rw-r--r--Ports/pacman/patches/ReadMe.md7
4 files changed, 55 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md
index d87abc24b4..ebe589cb1b 100644
--- a/Ports/AvailablePorts.md
+++ b/Ports/AvailablePorts.md
@@ -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/ |
diff --git a/Ports/pacman/package.sh b/Ports/pacman/package.sh
new file mode 100755
index 0000000000..1b4ada5c68
--- /dev/null
+++ b/Ports/pacman/package.sh
@@ -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
+}
diff --git a/Ports/pacman/patches/0001-Remove-incorrect-linker-library-path.patch b/Ports/pacman/patches/0001-Remove-incorrect-linker-library-path.patch
new file mode 100644
index 0000000000..333d659bad
--- /dev/null
+++ b/Ports/pacman/patches/0001-Remove-incorrect-linker-library-path.patch
@@ -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
+
+
+
diff --git a/Ports/pacman/patches/ReadMe.md b/Ports/pacman/patches/ReadMe.md
new file mode 100644
index 0000000000..4b7c030f8e
--- /dev/null
+++ b/Ports/pacman/patches/ReadMe.md
@@ -0,0 +1,7 @@
+# Patches for pacman on SerenityOS
+
+## `0001-Remove-incorrect-linker-library-path.patch`
+
+Remove incorrect linker library path
+
+