1 # Maintainer: Kyle Keen <keenerd@gmail.com>
2 # Contributor: Jonathan Steel <jsteel at archlinux.org>
7 pkgdesc="A curses-based scrolling 'Matrix'-like screen"
9 url="https://www.asty.org/cmatrix/"
12 # source already ships prebuild fonts - no need to add more deps to satisfy cmake
14 optdepends=('kbd: cmatrix-tty custom font'
15 'xterm: cmatrix-tty custom font')
16 # "https://www.asty.org/$pkgname/dist/$pkgname-$pkgver.tar.gz"
17 source=("cmatrix-$pkgver.tgz::https://github.com/abishekvashok/cmatrix/archive/v$pkgver.tar.gz"
19 sha256sums=('ad93ba39acd383696ab6a9ebbed1259ecf2d3cf9f49d6b97038c66f80749e99a'
20 '94890bec3d04f076ae43c56a7768e67cff2a209e02819e2ce80fd61173b15a30')
28 cmake ../$pkgname-$pkgver \
29 -D CMAKE_BUILD_TYPE=Release \
30 -D CMAKE_INSTALL_PREFIX=/usr \
31 #-D CONSOLE_FONTS_DIRS=/usr/share/kbd/consolefonts \
32 #-D X_FONTS_DIRS=/usr/share/fonts/misc \
38 # only the binary has a target to install
39 make -C build DESTDIR="$pkgdir" install
44 install -D -m644 mtx.pcf "$pkgdir"/usr/share/fonts/misc/mtx.pcf
46 # install console font
47 install -D -m644 matrix.fnt "$pkgdir"/usr/share/kbd/consolefonts/matrix.fnt
48 install -D -m644 matrix.psf.gz "$pkgdir"/usr/share/kbd/consolefonts/matrix.psf.gz
50 # todo: fix the pretty wrapper
51 #install -Dm755 "$srcdir/cmatrix-tty" "$pkgdir/usr/bin/cmatrix-tty"
53 for i in AUTHORS NEWS COPYING README ChangeLog INSTALL; do
54 install -Dm644 $i "$pkgdir/usr/share/doc/$pkgname/$i"
57 install -Dm644 cmatrix.1 "$pkgdir/usr/share/man/man1/cmatrix.1"