summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7850a9dec849392f43e5c75a8553b52ec19da47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Paolo Palmieri <palmaway@gmx.it>
# Contributor: Alessio 'Bl@ster' Biancalana <dottorblaster@archlinux.us>
# Contributor: Federico Giuliani <federico.giuliani86@gmail.com>

pkgname=fortune-mod-it
pkgver=1.99
pkgrel=3
pkgdesc="Collection of Italian fortune cookie files"
url="http://www.fortune-it.net/"
arch=('any')
depends=('fortune-mod')
groups=('fortune-mods')
license=('custom')
source=(http://www.fortune-it.net/download/fortune-it-1.99.tar.gz)
md5sums=('b395af4484a8101a3f92163ab8667d8b')

package(){
    cd ${srcdir}/fortune-it-${pkgver}/testi
    mkdir -p ${pkgdir}/usr/share/fortune/it
    cp -v * ${pkgdir}/usr/share/fortune/it

    cd ${pkgdir}/usr/share/fortune/it
    for _file in *; do
        strfile $_file
    done
    
    mkdir -p ${pkgdir}/usr/share/fortune/it-off
    mv ${pkgdir}/usr/share/fortune/it/*-o* ${pkgdir}/usr/share/fortune/it-off/

    cd ${srcdir}/fortune-it-${pkgver}/
    mkdir -p ${pkgdir}/usr/share/licenses/custom/fortune-mod-it/
    cp COPYING ${pkgdir}/usr/share/licenses/custom/fortune-mod-it/COPYING
}