From 554317e00adbffc89f1c33b99e2cd049d4e9d53c Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Fri, 18 Nov 2022 22:40:20 +0100 Subject: [PATCH 1/4] Do something offensive --- .SRCINFO | 20 ++++++++++++++++++++ PKGBUILD | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ not-a-game.patch | 11 +++++++++++ 3 files changed, 80 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 not-a-game.patch diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..e44eac2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = fortune-mod-off + pkgdesc = The Fortune Cookie Program from BSD games, with offensive quotes! + pkgver = 3.14.1 + pkgrel = 2 + url = https://www.shlomifish.org/open-source/projects/fortune-mod/ + arch = x86_64 + license = BSD + makedepends = cmake + makedepends = rinutils + depends = glibc + depends = recode + conflicts = fortune-mod + source = https://github.com/shlomif/fortune-mod/releases/download/fortune-mod-3.14.1/fortune-mod-3.14.1.tar.xz + source = not-a-game.patch + sha512sums = 0de0ec033ffc35a7a9ec1a549e6dac425757ec5fcc718c772f0a4e548d23c46451af4a90b0ac548f2ab60d68856ca0fa5e8f10930efe6b199e96b2cc1c568810 + sha512sums = c4ef10c6d7bdb15ceec020d27e11c489ff56ed573b7efc0cf7465026514f153f789444cd7e2996d0fd9bb0f923c4eeeaf0eaa46a0bfacbc36712917e4f5d6c04 + b2sums = a62d4056cdceef14f1d63dbc8b98bbd88098c64d0020b949ecc8e6006f1a4b1369211ac8b87a33db60b238cd7e6d3d6f3c4d2e59933a6cf0bd3fa54c439c4330 + b2sums = 5283fde623cd0d304f073d59ff648d671323d8638876c629e8e8f175de00c3d9a1f807f0a9dfce3d9c9a56299dc1824062b013a4ce0541ee5fcea97c53f6ecec + +pkgname = fortune-mod-off diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..e458f1c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Sam Therapy +# Contributor: Kyle Keen +# Contributor: Kevin Piche +# Contributor: Dale Blount +# Contributor: George Rawlinson + +pkgname=fortune-mod-off +pkgver=3.14.1 +pkgrel=2 +pkgdesc='The Fortune Cookie Program from BSD games, with offensive quotes!' +arch=('x86_64') +url='https://www.shlomifish.org/open-source/projects/fortune-mod/' +license=('BSD') +depends=('glibc' 'recode') +makedepends=('cmake' 'rinutils') +conflicts=('fortune-mod') +source=("https://github.com/shlomif/fortune-mod/releases/download/${pkgname/-off/}-$pkgver/${pkgname/-off/}-$pkgver.tar.xz" + 'not-a-game.patch') +sha512sums=('0de0ec033ffc35a7a9ec1a549e6dac425757ec5fcc718c772f0a4e548d23c46451af4a90b0ac548f2ab60d68856ca0fa5e8f10930efe6b199e96b2cc1c568810' + 'c4ef10c6d7bdb15ceec020d27e11c489ff56ed573b7efc0cf7465026514f153f789444cd7e2996d0fd9bb0f923c4eeeaf0eaa46a0bfacbc36712917e4f5d6c04') +b2sums=('a62d4056cdceef14f1d63dbc8b98bbd88098c64d0020b949ecc8e6006f1a4b1369211ac8b87a33db60b238cd7e6d3d6f3c4d2e59933a6cf0bd3fa54c439c4330' + '5283fde623cd0d304f073d59ff648d671323d8638876c629e8e8f175de00c3d9a1f807f0a9dfce3d9c9a56299dc1824062b013a4ce0541ee5fcea97c53f6ecec') + + +prepare() { + cd "${pkgname/-off/}-$pkgver" + patch -p1 -i ../not-a-game.patch +} + +build() { + cmake \ + -B build \ + -S "${pkgname/-off/}-$pkgver" \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D LOCALDIR=/usr/share/fortune \ + -D COOKIEDIR=/usr/share/fortune + + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build + + # i'd love to know why this command exists *shrugs* + rm -vf "$pkgdir/usr/share/fortune/"*.u8 + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" "${pkgname/-off/}-$pkgver/COPYING.txt" +} diff --git a/not-a-game.patch b/not-a-game.patch new file mode 100644 index 0000000..c3868fc --- /dev/null +++ b/not-a-game.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -154,7 +154,7 @@ ENDMACRO() + my_exe( + "fortune" + "fortune/fortune.c" +- "games" ++ "bin" + ) + my_exe( + From 3d5ffdd33756270b61235ba5b2e6bdd1fb86796a Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Tue, 21 Mar 2023 13:42:02 +0100 Subject: [PATCH 2/4] Bump to 3.18.0 --- .SRCINFO | 10 +++++----- PKGBUILD | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index e44eac2..62d37d5 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = fortune-mod-off pkgdesc = The Fortune Cookie Program from BSD games, with offensive quotes! - pkgver = 3.14.1 - pkgrel = 2 + pkgver = 3.18.0 + pkgrel = 1 url = https://www.shlomifish.org/open-source/projects/fortune-mod/ arch = x86_64 license = BSD @@ -10,11 +10,11 @@ pkgbase = fortune-mod-off depends = glibc depends = recode conflicts = fortune-mod - source = https://github.com/shlomif/fortune-mod/releases/download/fortune-mod-3.14.1/fortune-mod-3.14.1.tar.xz + source = https://github.com/shlomif/fortune-mod/releases/download/fortune-mod-3.18.0/fortune-mod-3.18.0.tar.xz source = not-a-game.patch - sha512sums = 0de0ec033ffc35a7a9ec1a549e6dac425757ec5fcc718c772f0a4e548d23c46451af4a90b0ac548f2ab60d68856ca0fa5e8f10930efe6b199e96b2cc1c568810 + sha512sums = b8d16bf5032c1a0fcb161c912109abd24f3b762f3455eaf86d41ed3f16a33db4913d9a21bb6a42f974a3b11cfaedac57cabc4456d178a3d631d8d4a723789798 sha512sums = c4ef10c6d7bdb15ceec020d27e11c489ff56ed573b7efc0cf7465026514f153f789444cd7e2996d0fd9bb0f923c4eeeaf0eaa46a0bfacbc36712917e4f5d6c04 - b2sums = a62d4056cdceef14f1d63dbc8b98bbd88098c64d0020b949ecc8e6006f1a4b1369211ac8b87a33db60b238cd7e6d3d6f3c4d2e59933a6cf0bd3fa54c439c4330 + b2sums = b975d75aea745f06f26753038416b1cc50b462a11a5cbe71a9aadc44b31f9120ac3e37ed160c9d7f90e379e5ea4c51dc39921362d24811547364e37d64c3faf9 b2sums = 5283fde623cd0d304f073d59ff648d671323d8638876c629e8e8f175de00c3d9a1f807f0a9dfce3d9c9a56299dc1824062b013a4ce0541ee5fcea97c53f6ecec pkgname = fortune-mod-off diff --git a/PKGBUILD b/PKGBUILD index e458f1c..bcf0cbc 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,8 +5,8 @@ # Contributor: George Rawlinson pkgname=fortune-mod-off -pkgver=3.14.1 -pkgrel=2 +pkgver=3.18.0 +pkgrel=1 pkgdesc='The Fortune Cookie Program from BSD games, with offensive quotes!' arch=('x86_64') url='https://www.shlomifish.org/open-source/projects/fortune-mod/' @@ -16,9 +16,9 @@ makedepends=('cmake' 'rinutils') conflicts=('fortune-mod') source=("https://github.com/shlomif/fortune-mod/releases/download/${pkgname/-off/}-$pkgver/${pkgname/-off/}-$pkgver.tar.xz" 'not-a-game.patch') -sha512sums=('0de0ec033ffc35a7a9ec1a549e6dac425757ec5fcc718c772f0a4e548d23c46451af4a90b0ac548f2ab60d68856ca0fa5e8f10930efe6b199e96b2cc1c568810' +sha512sums=('b8d16bf5032c1a0fcb161c912109abd24f3b762f3455eaf86d41ed3f16a33db4913d9a21bb6a42f974a3b11cfaedac57cabc4456d178a3d631d8d4a723789798' 'c4ef10c6d7bdb15ceec020d27e11c489ff56ed573b7efc0cf7465026514f153f789444cd7e2996d0fd9bb0f923c4eeeaf0eaa46a0bfacbc36712917e4f5d6c04') -b2sums=('a62d4056cdceef14f1d63dbc8b98bbd88098c64d0020b949ecc8e6006f1a4b1369211ac8b87a33db60b238cd7e6d3d6f3c4d2e59933a6cf0bd3fa54c439c4330' +b2sums=('b975d75aea745f06f26753038416b1cc50b462a11a5cbe71a9aadc44b31f9120ac3e37ed160c9d7f90e379e5ea4c51dc39921362d24811547364e37d64c3faf9' '5283fde623cd0d304f073d59ff648d671323d8638876c629e8e8f175de00c3d9a1f807f0a9dfce3d9c9a56299dc1824062b013a4ce0541ee5fcea97c53f6ecec') From 37133a7cdd53fa7b7388638124ff3613194461ad Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Fri, 13 Oct 2023 17:33:10 +0200 Subject: [PATCH 3/4] Bump to 3.20.0 --- .SRCINFO | 34 +++++++++++++++++----------------- PKGBUILD | 10 +++++----- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 62d37d5..fc41cf0 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,20 +1,20 @@ pkgbase = fortune-mod-off - pkgdesc = The Fortune Cookie Program from BSD games, with offensive quotes! - pkgver = 3.18.0 - pkgrel = 1 - url = https://www.shlomifish.org/open-source/projects/fortune-mod/ - arch = x86_64 - license = BSD - makedepends = cmake - makedepends = rinutils - depends = glibc - depends = recode - conflicts = fortune-mod - source = https://github.com/shlomif/fortune-mod/releases/download/fortune-mod-3.18.0/fortune-mod-3.18.0.tar.xz - source = not-a-game.patch - sha512sums = b8d16bf5032c1a0fcb161c912109abd24f3b762f3455eaf86d41ed3f16a33db4913d9a21bb6a42f974a3b11cfaedac57cabc4456d178a3d631d8d4a723789798 - sha512sums = c4ef10c6d7bdb15ceec020d27e11c489ff56ed573b7efc0cf7465026514f153f789444cd7e2996d0fd9bb0f923c4eeeaf0eaa46a0bfacbc36712917e4f5d6c04 - b2sums = b975d75aea745f06f26753038416b1cc50b462a11a5cbe71a9aadc44b31f9120ac3e37ed160c9d7f90e379e5ea4c51dc39921362d24811547364e37d64c3faf9 - b2sums = 5283fde623cd0d304f073d59ff648d671323d8638876c629e8e8f175de00c3d9a1f807f0a9dfce3d9c9a56299dc1824062b013a4ce0541ee5fcea97c53f6ecec + pkgdesc = The Fortune Cookie Program from BSD games, with the offensive quotes added back in + pkgver = 3.20.0 + pkgrel = 1 + url = https://www.shlomifish.org/open-source/projects/fortune-mod/ + arch = x86_64 + license = BSD + makedepends = cmake + makedepends = rinutils + depends = glibc + depends = recode + conflicts = fortune-mod + source = https://github.com/shlomif/fortune-mod/releases/download/fortune-mod-3.20.0/fortune-mod-3.20.0.tar.xz + source = not-a-game.patch + sha512sums = 4ce1111c73f087ed899e4796ac9c15f85fa7262e08f1a81162fcc37757d4ecd1f234d3c2c362a264c07ae45d68ec2299d4870c7b348cc0bbeb7db3b170ba0ded + sha512sums = c4ef10c6d7bdb15ceec020d27e11c489ff56ed573b7efc0cf7465026514f153f789444cd7e2996d0fd9bb0f923c4eeeaf0eaa46a0bfacbc36712917e4f5d6c04 + b2sums = b9b083fdb507126ab9c156e7f09fba720b37a88301a3472f1162a0744760d15dde54c2e4abda93fdca1f548880ae42a0bb45340f19464843bf833264c4fbbf31 + b2sums = 5283fde623cd0d304f073d59ff648d671323d8638876c629e8e8f175de00c3d9a1f807f0a9dfce3d9c9a56299dc1824062b013a4ce0541ee5fcea97c53f6ecec pkgname = fortune-mod-off diff --git a/PKGBUILD b/PKGBUILD index bcf0cbc..8f8988b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,13 +1,13 @@ # Maintainer: Sam Therapy +# Contributor: George Rawlinson # Contributor: Kyle Keen # Contributor: Kevin Piche # Contributor: Dale Blount -# Contributor: George Rawlinson pkgname=fortune-mod-off -pkgver=3.18.0 +pkgver=3.20.0 pkgrel=1 -pkgdesc='The Fortune Cookie Program from BSD games, with offensive quotes!' +pkgdesc='The Fortune Cookie Program from BSD games, with the offensive quotes added back in' arch=('x86_64') url='https://www.shlomifish.org/open-source/projects/fortune-mod/' license=('BSD') @@ -16,9 +16,9 @@ makedepends=('cmake' 'rinutils') conflicts=('fortune-mod') source=("https://github.com/shlomif/fortune-mod/releases/download/${pkgname/-off/}-$pkgver/${pkgname/-off/}-$pkgver.tar.xz" 'not-a-game.patch') -sha512sums=('b8d16bf5032c1a0fcb161c912109abd24f3b762f3455eaf86d41ed3f16a33db4913d9a21bb6a42f974a3b11cfaedac57cabc4456d178a3d631d8d4a723789798' +sha512sums=('4ce1111c73f087ed899e4796ac9c15f85fa7262e08f1a81162fcc37757d4ecd1f234d3c2c362a264c07ae45d68ec2299d4870c7b348cc0bbeb7db3b170ba0ded' 'c4ef10c6d7bdb15ceec020d27e11c489ff56ed573b7efc0cf7465026514f153f789444cd7e2996d0fd9bb0f923c4eeeaf0eaa46a0bfacbc36712917e4f5d6c04') -b2sums=('b975d75aea745f06f26753038416b1cc50b462a11a5cbe71a9aadc44b31f9120ac3e37ed160c9d7f90e379e5ea4c51dc39921362d24811547364e37d64c3faf9' +b2sums=('b9b083fdb507126ab9c156e7f09fba720b37a88301a3472f1162a0744760d15dde54c2e4abda93fdca1f548880ae42a0bb45340f19464843bf833264c4fbbf31' '5283fde623cd0d304f073d59ff648d671323d8638876c629e8e8f175de00c3d9a1f807f0a9dfce3d9c9a56299dc1824062b013a4ce0541ee5fcea97c53f6ecec') From 1b300b5340cf96077cadd51514cf3cc67b4818b9 Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Fri, 13 Oct 2023 17:38:57 +0200 Subject: [PATCH 4/4] Provide fortune-mod as well as conflict it --- .SRCINFO | 1 + PKGBUILD | 1 + 2 files changed, 2 insertions(+) diff --git a/.SRCINFO b/.SRCINFO index fc41cf0..f518a19 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -9,6 +9,7 @@ pkgbase = fortune-mod-off makedepends = rinutils depends = glibc depends = recode + provides = fortune-mod conflicts = fortune-mod source = https://github.com/shlomif/fortune-mod/releases/download/fortune-mod-3.20.0/fortune-mod-3.20.0.tar.xz source = not-a-game.patch diff --git a/PKGBUILD b/PKGBUILD index 8f8988b..9ba5d55 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -13,6 +13,7 @@ url='https://www.shlomifish.org/open-source/projects/fortune-mod/' license=('BSD') depends=('glibc' 'recode') makedepends=('cmake' 'rinutils') +provides=('fortune-mod') conflicts=('fortune-mod') source=("https://github.com/shlomif/fortune-mod/releases/download/${pkgname/-off/}-$pkgver/${pkgname/-off/}-$pkgver.tar.xz" 'not-a-game.patch')