summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 94aa05538cd6e3150fac82455ca79ecb6ed7ebcc (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: Kamil ƚliwak <cameel2/at/gmail/com>

pkgname=unimatrix-git
pkgver=r30.3692561
pkgrel=1
pkgdesc='Python script to simulate the display from "The Matrix" in terminal. Uses half-width katakana unicode characters by default, but can use custom character sets.'
arch=('any')
url="https://github.com/will8211/unimatrix"
license=('GPL3')
depends=('python')
makedepends=('git')
provides=('unimatrix')
conflicts=('unimatrix')
source=("$pkgname"::git+${url}.git)
sha256sums=('SKIP')

pkgver() {
    cd "${pkgname}"

    # TODO: Right now there are no tags in the git repo.
    # Change the command below to use tags when the first official version gets released.
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "${pkgname}"

    mkdir --parents "${pkgdir}/usr/bin/"
    install --mode 755 unimatrix.py "${pkgdir}/usr/bin/unimatrix.py"
    ln --symbolic /usr/bin/unimatrix.py "${pkgdir}/usr/bin/unimatrix"
}