blob: 121258b5eaa969f22f2afe7a7b251c16f0bd82a3 (
plain)
1 # Description: Show a scrolling 'Matrix' like screen in Linux.
2 # URL: https://www.asty.org/cmatrix/
3 # Maintainer: Thomas Penteker, tek at serverop dot de
4 # Packager: Vincenzo Colosimo vico at bicisport dot de
5 # Depends on: cmake
6
7 name=cmatrix
8 version=2.0
9 release=1
10 source=(https://github.com/abishekvashok/cmatrix/archive/v$version/$name-v$version.tar.gz)
11
12 build() {
13 [[ -e /usr/bin/ninja ]] && PKGMK_CMATRIX+=' -G Ninja'
14 cmake -S $name-$version -B build $PKGMK_CMATRIX \
15 -D CMAKE_INSTALL_PREFIX=/usr \
16 -D CMAKE_BUILD_TYPE=Release \
17 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
18 -Wno-dev
19 cmake --build build
20 DESTDIR=$PKG cmake --install build
21
22 install -D -m644 -groot -oroot $name-$version/cmatrix.1 $PKG/usr/share/man/1/cmatrix.1
23 install -D -m644 -groot -oroot $name-$version/matrix.fnt $PKG/usr/share/kbd/consolefonts/matrix.fnt
24 install -D -m644 -groot -oroot $name-$version/matrix.psf.gz $PKG/usr/share/kbd/consolefonts/matrix.psf.gz
25 install -D -m644 -groot -oroot $name-$version/mtx.pcf $PKG/usr/share/fonts/X11/misc/mtx.pcf
26 }
|