Package Details: fortune-mod-bashfr 10-5

Git Clone URL: https://aur.archlinux.org/fortune-mod-bashfr.git (read-only)
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.000076
First Submitted: 2008-04-06 17:00
Last Updated: 2015-06-18 21:40

Latest Comments

sputnick commented on 2015-02-22 19:05

Using a workaround now, enjoy, bashfr is back.

sputnick commented on 2015-01-04 23:30

Sorry, no cigar :/

sputnick commented on 2014-10-23 18:25

The full 'quotes' are down for the moment, I'm in touch with DTC crew for a workaround: this page doesn't exists anymore...

sputnick commented on 2013-10-15 19:43

@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

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:31

De rien :)

milouse commented on 2013-04-22 14:30

De rien :)

sputnick commented on 2013-04-22 11:40

@milouse, thanks, updated DONE.

milouse commented on 2013-04-22 07:21

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
}