contrib/cmatrix/Pkgfile

27 lines
1.0 KiB
Plaintext
Raw Normal View History

2006-11-19 22:26:53 +01:00
# Description: Show a scrolling 'Matrix' like screen in Linux.
2020-06-21 01:29:30 +02:00
# URL: https://www.asty.org/cmatrix/
2008-03-06 00:28:17 +01:00
# Maintainer: Thomas Penteker, tek at serverop dot de
2008-05-16 19:48:04 +02:00
# Packager: Vincenzo Colosimo vico at bicisport dot de
2019-04-10 00:57:29 +02:00
# Depends on: cmake
2006-11-14 00:01:22 +01:00
name=cmatrix
2019-04-10 00:57:29 +02:00
version=2.0
2006-11-14 00:01:22 +01:00
release=1
2019-04-10 00:57:29 +02:00
source=(https://github.com/abishekvashok/cmatrix/archive/v$version/$name-v$version.tar.gz)
2006-11-14 00:01:22 +01:00
build() {
2020-11-08 11:15:21 +01:00
[[ -e /usr/bin/ninja ]] && PKGMK_CMATRIX+=' -G Ninja'
cmake -S $name-$version -B build $PKGMK_CMATRIX \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-Wno-dev
2020-05-25 21:11:43 +02:00
cmake --build build
2020-07-08 15:01:36 +02:00
DESTDIR=$PKG cmake --install build
2006-11-14 00:01:22 +01:00
2020-05-25 21:11:43 +02:00
install -D -m644 -groot -oroot $name-$version/cmatrix.1 $PKG/usr/share/man/1/cmatrix.1
install -D -m644 -groot -oroot $name-$version/matrix.fnt $PKG/usr/share/kbd/consolefonts/matrix.fnt
install -D -m644 -groot -oroot $name-$version/matrix.psf.gz $PKG/usr/share/kbd/consolefonts/matrix.psf.gz
install -D -m644 -groot -oroot $name-$version/mtx.pcf $PKG/usr/share/fonts/X11/misc/mtx.pcf
2006-11-14 00:01:22 +01:00
}