feat: initial import of fortune-mod-dune

This commit is contained in:
Oliver Ladner 2025-10-16 12:09:12 +02:00
commit c6d18e7809
3 changed files with 61 additions and 0 deletions

13
.SRCINFO Normal file
View file

@ -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

12
LICENSE Normal file
View file

@ -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.

36
PKGBUILD Normal file
View file

@ -0,0 +1,36 @@
# Maintainer: Oliver Ladner <waste@lugh.ch>
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
}