Package Details: fortune-mod-bashfr 11-1

Git Clone URL: https://aur.archlinux.org/fortune-mod-bashfr.git (read-only, click to copy)
Package Base: fortune-mod-bashfr
Description: bashfr.org/DTC (danstonchat.com) fortune file
Upstream URL: http://danstonchat.com
Licenses: custom
Groups: fortune-mods
Submitter: None
Maintainer: sputnick
Last Packager: sputnick
Votes: 27
Popularity: 0.000000
First Submitted: 2008-04-06 17:00 (UTC)
Last Updated: 2022-10-15 03:17 (UTC)

Latest Comments

« First ‹ Previous 1 2

sputnick commented on 2013-10-15 19:43 (UTC)

@Scimmia: if you find something wrong, I will upgrade the PKGBUILD. But @this point, it's quite vague.

Scimmia commented on 2013-10-13 18:03 (UTC)

Installing directly do /usr/share in the build function? So you have to build this as root? So many things wrong with this.

milouse commented on 2013-04-22 14:30 (UTC)

De rien :)

sputnick commented on 2013-04-22 11:40 (UTC)

@milouse, thanks, updated DONE.

milouse commented on 2013-04-22 07:21 (UTC)

Hi! There was some changes in the PKGBUILD guideline which make the install of this package to fail (no package() method...). So I purpose this little enhancement of your PKGBUILD : - the cron install is now wrapped in a package method - the fortune files themselves are now installed in the /usr/share/fortune/fr subdirectory as other french related fortune files. # Contributor : sputnick <gilles *DOT* quenot *AT* gmail *DOT *com> pkgname=fortune-mod-bashfr pkgver=2 pkgrel=5 pkgdesc="bashfr.org/DTC (danstonchat.com) fortune file" url="http://danstonchat.com" depends=('fortune-mod') groups=('fortune-mods') install='fortune-mod-bashfr.install' arch=('any') license="custom" build() { cd ${srcdir} cat>cron<<'BASHFR' #!/usr/bin/env bash # # ------------------------------------------------------------------ # made by sputnick in da FreAkY lApPy lAb (c) 2009-2013 # gilles.quenot <AT> gmail <DOT> com # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software Foundation. # (see http://www.gnu.org/licenses/gpl.html). # ------------------------------------------------------------------ # ,,_ # o" )@ # '''' # ------------------------------------------------------------------ # # vim:ts=4:sw=4 # Script d'update des fortunes DTC/bashfr du paquet fortune-mod-bashfr export PATH=/usr/bin:/bin:/usr/sbin:$PATH cd /tmp if ! wget &> /dev/null -N http://danstonchat.com/fortunes; then echo >&2 "Le téléchargement de http://danstonchat.com/fortunes a échoué, merci de passer le paquet fortune-mod-bashfr en perimé si le problème persiste." exit 1 fi # On efface les URLs des quotes if ! sed -e 's|^-- http.*$||g' fortunes > bashfr; then echo >&2 "Sed a échoué, merci de passer le paquet fortune-mod-bashfr en perimé si le problème persiste." exit 1 fi if ! strfile -s -r bashfr bashfr.dat; then echo >&2 "Attention, extra/fortune-mod semble avoir été désinstallé, $0 a donc échoué." exit 1 fi install -D -m644 bashfr /usr/share/fortune/fr/bashfr install -D -m644 bashfr.dat /usr/share/fortune/fr/bashfr.dat \rm -f fortunes bashfr{,.dat} BASHFR } package() { install -D -m755 ${srcdir}/cron ${pkgdir}/etc/cron.daily/bashfr }