From c6d18e78098959a22e663a81e71c9156b2a808d9 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Thu, 16 Oct 2025 12:09:12 +0200 Subject: [PATCH] feat: initial import of fortune-mod-dune --- .SRCINFO | 13 +++++++++++++ LICENSE | 12 ++++++++++++ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 .SRCINFO create mode 100644 LICENSE create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..52fb0ec --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = fortune-mod-dune + pkgdesc = Quotes from Frank Herbert's 'Dune' series + pkgver = 2.0.1 + pkgrel = 1 + url = https://github.com/agoodno/fortune-dune + arch = any + groups = fortune-mods + license = unknown + depends = fortune-mod + source = fortune-mod-dune::git+https://github.com/agoodno/fortune-dune.git?#tag=66f5360604c7a9c0e2b59e78c6d00e27092816b8 + sha256sums = 192024646acaa841f5dd36212398132994355a87bf85a3d6b65c21309bdf91a6 + +pkgname = fortune-mod-dune diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b87c5e4 --- /dev/null +++ b/LICENSE @@ -0,0 +1,12 @@ +Copyright Arch Linux Contributors + +Permission to use, copy, modify, and/or distribute this software for +any purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL +WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE +FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN +AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..92c8ce1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Oliver Ladner +pkgname=fortune-mod-dune +pkgver=2.0.1 +pkgrel=1 +pkgdesc="Quotes from Frank Herbert's 'Dune' series" +arch=('any') +url='https://github.com/agoodno/fortune-dune' +license=('unknown') +groups=('fortune-mods') +depends=('fortune-mod') +# git rev-parse $pkgver +_tag='66f5360604c7a9c0e2b59e78c6d00e27092816b8' +source=($pkgname::git+$url.git?#tag=$_tag) +# updpkgsums +sha256sums=('192024646acaa841f5dd36212398132994355a87bf85a3d6b65c21309bdf91a6') + +build() { + cd "$srcdir/$pkgname" + # Filter for files in lower case and not ending in .sh + _fortune_files="$(ls -1 -I "[A-Z]*" -I "*.sh")" + for f in $_fortune_files; do + strfile "$f" + done +} + +package() { + cd "$srcdir/$pkgname" + install -dm755 -- "${pkgdir}/usr/share/fortune" + # Filter for files in lower case and not ending in .sh + _fortune_files="$(ls -1 -I "[A-Z]*" -I "*.sh")" + for f in $_fortune_files; do + # install -m644 -- ${f} ${f}.dat "${pkgdir}/usr/share/fortune" + install -m644 -- $f "${pkgdir}/usr/share/fortune" + # install -m644 -- $f.dat "${pkgdir}/usr/share/fortune" + done +}