diff --git a/app/misc/sex/.gitkeep b/app/misc/sex/.gitkeep new file mode 100644 index 00000000..e69de29b 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 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/ +}