From 322569c1b6db19724e8b03420d0bbd8d5ec93f77 Mon Sep 17 00:00:00 2001 From: Bai Date: Fri, 30 Aug 2024 16:44:45 +0000 Subject: [PATCH 1/3] Add new directory --- app/misc/sex/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 app/misc/sex/.gitkeep diff --git a/app/misc/sex/.gitkeep b/app/misc/sex/.gitkeep new file mode 100644 index 00000000..e69de29b From 52f7d222d5aec754f29b2b7496a1caf7a527c320 Mon Sep 17 00:00:00 2001 From: Bai Date: Fri, 30 Aug 2024 16:45:35 +0000 Subject: [PATCH 2/3] new package: sex --- app/misc/sex/ympbuild | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 app/misc/sex/ympbuild diff --git a/app/misc/sex/ympbuild b/app/misc/sex/ympbuild new file mode 100644 index 00000000..6b78a07a --- /dev/null +++ b/app/misc/sex/ympbuild @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +name=sex +version=1.0 +release=1 +url='http://spatula.net/software/sex' +description='Spout silly, random porn-like text' +email='leah@vuxu.org' +maintainer='Leah Neukirchen' +source=("http://spatula.net/software/sex//${name}-${version}.tar.gz" + "fix.patch" +) +arch=(x86_64 aarch64) +sha256sums=('0f21831cd583ed917c2fc5f17bbe4e42f1d700417260b2e5924bf86b7f06eea8' + 'SKIP' +) +license=('Public Domain') + +cd $name-$version + +prepare(){ + patch -Np0 -i ../fix.patch +} + +build(){ + cc -o sex sex.c +} +package(){ + cp sex /usr/bin/ +} From 14a80c1260c6515d032e2c15ff98962d38f09cfc Mon Sep 17 00:00:00 2001 From: Bai Date: Fri, 30 Aug 2024 16:46:55 +0000 Subject: [PATCH 3/3] added fix --- app/misc/sex/fix.patch | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 app/misc/sex/fix.patch diff --git a/app/misc/sex/fix.patch b/app/misc/sex/fix.patch new file mode 100644 index 00000000..75a05f7b --- /dev/null +++ b/app/misc/sex/fix.patch @@ -0,0 +1,9 @@ ++++ sex.c +@@ -8,6 +8,7 @@ + * Completely rewrote how word wrapping works and added -w flag. + */ + ++#include + #include + #include + #include