updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / fortune-mod-fr / PKGBUILD
blob290a6de62301a1065a80054540fc3c1b7ff73119
1 # Contributor: Baptiste Grenier <baptiste@bapt.name>
3 pkgname=fortune-mod-fr
4 pkgver=0.02
5 pkgrel=3
6 pkgdesc="Collection of French fortune cookie files"
7 arch=('i686' 'x86_64')
8 url="http://www.fortunes-fr.org"
9 license=('custom')
10 depends=('fortune-mod')
11 groups=('fortune-mods')
12 source=("http://www.fortunes-fr.org/fortunes-fr/fortunes-fr-$pkgver.tar.gz")
13 md5sums=('07c2a2d56853bb02d8b48f31a0c6bf6e')
15 build() {
16   cd "${srcdir}/fortunes-fr-${pkgver}"
18   # Check it the system is in UTF-8
19   if [ `grep -i utf-8 /etc/rc.conf |wc -l` != 0 ]; then
20       ./configure --prefix=$pkgdir/usr --with-fortunesdir=$pkgdir/usr/share/fortune/fr --with-charset=UTF8
21   else
22       ./configure --prefix=$pkgdir/usr --with-fortunesdir=$pkgdir/usr/share/fortune/fr
23   fi
25   make || return 1
27   mkdir -p "${pkgdir}/usr/share/licenses/fortune-mod-fr/"
28   cp COPYING "${pkgdir}/usr/share/licenses/fortune-mod-fr/COPYING"
30   make install