summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 105793ee5f0d19956bf56bd5f13b384a0ee38ed8 (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
40
41
# Maintainer: Elias Riedel Gårding <eliasrg@kth.se>
# Author: Miloš Stojanović <mc.cm.mail@gmail.com>
# Discussion: https://www.reddit.com/r/unixporn/comments/btg6rj/oc_tmatrix_a_new_terminal_digital_rain_simulator
pkgname=tmatrix-git
pkgver=1.0.r2.gebeaf00
pkgrel=1
pkgdesc="A cmatrix-like replica of the digital rain from the Matrix"
arch=('x86_64' 'i686')
url="https://github.com/M4444/TMatrix"
license=('GPL2')
depends=('ncurses')
makedepends=('git' 'cmake')
provides=('tmatrix')
conflicts=('tmatrix')
source=("${pkgname%%-git}::git+https://github.com/M4444/TMatrix.git")
md5sums=('SKIP')


pkgver() {
    cd "${pkgname%%-git}"
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}


build() {
    cd "${pkgname%%-git}"
    mkdir -p build && cd build

    # Install into /usr/bin
    cmake -DCMAKE_INSTALL_PREFIX:PATH="$pkgdir/usr" ..
    make -j8
}


package() {
    cd "${pkgname%%-git}"
    install -Dm644 tmatrix.6 "$pkgdir/usr/share/man/man6/tmatrix.6"

    cd build
    make install
}