Ports: Update sl's patches to use git patches

This commit is contained in:
Ali Mohammad Pur 2022-05-16 23:40:14 +04:30 committed by Ali Mohammad Pur
parent 06f9a1bacc
commit 54f191f25b
3 changed files with 35 additions and 14 deletions

View file

@ -0,0 +1,27 @@
From 71f2cc48a3e66377763401054c663ca6a2a3f7ca Mon Sep 17 00:00:00 2001
From: Gunnar Beutner <gbeutner@serenityos.org>
Date: Thu, 15 Apr 2021 15:43:18 +0200
Subject: [PATCH] Add an install target
Co-Authored-By: Noah Rosamilia <ivoahivoah@gmail.com>
---
Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Makefile b/Makefile
index c3005d2..04fcb9d 100644
--- a/Makefile
+++ b/Makefile
@@ -18,3 +18,9 @@ clean:
rm -f sl
distclean: clean
+
+install: all
+ mkdir -p ${DESTDIR}/usr/local/bin
+ install sl ${DESTDIR}/usr/local/bin/sl
+ mkdir -p ${DESTDIR}/usr/local/share/man/man1
+ gzip -9 -c < sl.1 > ${DESTDIR}/usr/local/share/man/man1/sl.1.gz
--
2.36.1

View file

@ -0,0 +1,8 @@
# Patches for sl on SerenityOS
## `0001-Add-an-install-target.patch`
Add an install target

View file

@ -1,14 +0,0 @@
diff --git a/Makefile b/Makefile
index c3005d2..e071fc9 100644
--- a/Makefile
+++ b/Makefile
@@ -18,3 +18,9 @@ clean:
rm -f sl
distclean: clean
+
+install: all
+ mkdir -p ${DESTDIR}/usr/local/bin
+ install sl ${DESTDIR}/usr/local/bin/sl
+ mkdir -p ${DESTDIR}/usr/local/share/man/man1
+ gzip -9 -c < sl.1 > ${DESTDIR}/usr/local/share/man/man1/sl.1.gz