summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3b48c67d1a02e2946b1d3edb30cb7feade813640 (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
# Maintainer: katoitalia

pkgname=neo-matrix-git
pkgver=r24.5c4100a
pkgrel=1
pkgdesc='Simulates the digital rain from "The Matrix" (cmatrix clone with 32-bit color and Unicode support)'
arch=(x86_64 i686 i486 pentium4 arm armv6h armv7h aarch64)
url='https://github.com/st3w/neo'
license=('GPL3')
depends=('ncurses' 'ttf-hanazono')
makedepends=('git' 'autoconf-archive')
provides=('neo-matrix')
conflicts=('neo-matrix')
source=("git+https://github.com/st3w/neo.git")
md5sums=('SKIP')

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

prepare() {
  cd "${srcdir}/neo"
  ./autogen.sh
}

build() {
  cd "${srcdir}/neo"
  ./configure
  make
}

package() {
  cd "${srcdir}/neo"
  install -Dm755 "${srcdir}/neo/src/neo" "${pkgdir}/usr/bin/neo-matrix"
  install -Dm644 "${srcdir}/neo/doc/neo.6" "${pkgdir}/usr/share/man/man6/neo-matrix.6"
}