summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4769355bc2c6073302d0d6d45633c440be255ce8 (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
# Maintainer: Daniel Nunes <daniel.henri.nunes at gmail dot com>
_pkgname=fortune-anti-jokes
pkgname=fortune-mod-anti-jokes-git
pkgver=r1.cc15045
pkgrel=1
pkgdesc="Anti-jokes fortune cookies"
url="https://github.com/gandag/fortune-anti-jokes"
arch=(any)
license=(unknown)
depends=('fortune-mod')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/gandag/fortune-anti-jokes.git')
md5sums=(SKIP)

pkgver() {
	cd "$srcdir/${_pkgname}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${_pkgname}"
  strfile -r anti-jokes
}

package(){
	cd "$srcdir/${_pkgname}"
  mkdir -p ${pkgdir}/usr/share/fortune
  cp anti-jokes ${pkgdir}/usr/share/fortune
  cp anti-jokes.dat ${pkgdir}/usr/share/fortune
}