summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8bd1bea0f594e88e83c06330141ef0ad39d5ab38 (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
# Maintainer: VirtualTam <virtualtam@flibidi.net>
pkgname=fortune-mod-protolol-git
pkgver=9f59ff8
pkgrel=2
pkgdesc="A compilation of networking jokes"
url="http://attrition.org/misc/ee/protolol.txt"
arch=('any')
license=('custom:WTFPL')
depends=(fortune-mod)
makedepends=(git)
_gitname="fortune-protolol"
source=(git+https://github.com/virtualtam/fortune-protolol.git)
sha256sums=(SKIP)

pkgver() {
    cd ${srcdir}/${_gitname}
    git describe --always | sed 's|-|.|g'
}

build() {
    cd ${srcdir}/${_gitname}
    # Edit if you wish to change how strings are indexed
    # man strfile for more information
    strfile -r protolol
}

package(){
    mkdir -p ${pkgdir}/usr/share/fortune
    cp ${srcdir}/${_gitname}/protolol ${pkgdir}/usr/share/fortune
    cp ${srcdir}/${_gitname}/protolol.dat ${pkgdir}/usr/share/fortune
}