summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b462ee16b06a3f6e739affc18c01cdfe49a3e8e7 (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
34
35
36
37
38
39
# Maintainer: zocker_160 <zocker1600 at posteo dot net>
# Contributor: Brian Schubert <bewschubert@gmail.com>

pkgname=ifm-git
_gitname=ifm
pkgver=r1090.1f6eb78
pkgrel=1
pkgdesc="A language and a program for keeping track of your progress through an Interactive Fiction game."
arch=('x86_64')
url="https://ifm.readthedocs.io/en/latest/intro.html"
license=('GPL2')
depends=('tk' 'perl')
makedepends=('tk' 'help2man' 'git')
conflicts=('ifm')
source=('git+https://github.com/zocker-160/ifm.git')
sha256sums=('SKIP')
options=('docs')

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

build() {
    cd "$srcdir/$_gitname"

    chmod +x ./autogen.sh
    ./autogen.sh

    export CPPFLAGS=-D_GNU_SOURCE
    ./configure --prefix=/usr --mandir=/usr/share/man
    make || true # I need to run make twice, because for some stupid reason it fails on the first run
    make
}

package() {
    cd "$srcdir/$_gitname"
    make DESTDIR=$pkgdir docdir=$pkgdir/usr/share/doc install
}