[arch-commits] Commit in cmatrix/repos/community-x86_64 (4 files)
Kyle Keen
kkeen at archlinux.org
Sat Oct 6 12:45:38 UTC 2018
Date: Saturday, October 6, 2018 @ 12:45:38
Author: kkeen
Revision: 390861
archrelease: copy trunk to community-x86_64
Added:
cmatrix/repos/community-x86_64/PKGBUILD
(from rev 390860, cmatrix/trunk/PKGBUILD)
cmatrix/repos/community-x86_64/cmatrix-tty
(from rev 390860, cmatrix/trunk/cmatrix-tty)
Deleted:
cmatrix/repos/community-x86_64/PKGBUILD
cmatrix/repos/community-x86_64/cmatrix-tty
-------------+
PKGBUILD | 95 +++++++++++++++++++++++++++++++---------------------------
cmatrix-tty | 78 +++++++++++++++++++++++------------------------
2 files changed, 90 insertions(+), 83 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-10-06 12:45:21 UTC (rev 390860)
+++ PKGBUILD 2018-10-06 12:45:38 UTC (rev 390861)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-# Contributor: Jonathan Steel <jsteel at archlinux.org>
-
-pkgname=cmatrix
-pkgver=1.2a
-pkgrel=12
-pkgdesc="A curses-based scrolling 'Matrix'-like screen"
-arch=('i686' 'x86_64')
-url="http://www.asty.org/cmatrix/"
-license=('GPL2')
-depends=('ncurses')
-makedepends=('fontconfig')
-optdepends=('fontconfig: custom font'
- 'kbd: cmatrix-tty custom font'
- 'xterm: cmatrix-tty custom font')
-source=("http://www.asty.org/$pkgname/dist/$pkgname-$pkgver.tar.gz"
- "cmatrix-tty")
-md5sums=('ebfb5733104a258173a9ccf2669968a1'
- '6bb2431c23350cb2082e14b6ba761760')
-
-build() {
- cd $pkgname-$pkgver
-
- CPPFLAGS="-D_FORTIFY_SOURCE=0" ./configure \
- --prefix=/usr --mandir=/usr/share/man
-
- make
-}
-
-package() {
- cd $pkgname-$pkgver
-
- make DESTDIR="$pkgdir" install
-
- install -Dm644 mtx.pcf "$pkgdir/usr/share/fonts/misc/mtx.pcf"
- install -Dm644 matrix.fnt "$pkgdir/usr/share/kbd/consolefonts/matrix.fnt"
- install -Dm644 matrix.psf.gz "$pkgdir/usr/share/kbd/consolefonts/matrix.psf.gz"
- install -Dm755 "$srcdir/cmatrix-tty" "$pkgdir/usr/bin/cmatrix-tty"
-
- for i in AUTHORS NEWS COPYING README ChangeLog TODO INSTALL; do
- install -Dm644 $i "$pkgdir/usr/share/doc/$pkgname/$i"
- done
-}
Copied: cmatrix/repos/community-x86_64/PKGBUILD (from rev 390860, cmatrix/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-10-06 12:45:38 UTC (rev 390861)
@@ -0,0 +1,51 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Jonathan Steel <jsteel at archlinux.org>
+
+pkgname=cmatrix
+pkgver=1.2
+pkgrel=1
+pkgdesc="A curses-based scrolling 'Matrix'-like screen"
+arch=('x86_64')
+url="http://www.asty.org/cmatrix/"
+license=('GPL3')
+depends=('ncurses')
+makedepends=('fontconfig')
+optdepends=('fontconfig: custom font'
+ 'kbd: cmatrix-tty custom font'
+ 'xterm: cmatrix-tty custom font')
+# "http://www.asty.org/$pkgname/dist/$pkgname-$pkgver.tar.gz"
+source=("cmatrix-$pkgver.tgz::https://github.com/abishekvashok/cmatrix/archive/$pkgver.tar.gz"
+ "cmatrix-tty")
+md5sums=('f74707c4237dc2f33a7fce9dea8395ca'
+ '6bb2431c23350cb2082e14b6ba761760')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ sed -i 's|/usr/lib/kbd|/usr/share/kbd|' configure{.ac,} config.h.in cmatrix.spec.in Makefile.{in,am}
+ sed -i 's|/usr/lib/X11/fonts/misc|/usr/share/fonts/misc|' configure{.ac,} config.h.in Makefile.{in,am}
+ sed -i 's| /usr/| $(DESTDIR)/usr/|' Makefile.{in,am}
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ CPPFLAGS="-D_FORTIFY_SOURCE=0" ./configure \
+ --prefix=/usr --mandir=/usr/share/man
+
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ install -d "$pkgdir/usr/share/fonts/misc/"
+ install -d "$pkgdir/usr/share/kbd/consolefonts/"
+ make DESTDIR="$pkgdir" install
+
+ install -Dm755 "$srcdir/cmatrix-tty" "$pkgdir/usr/bin/cmatrix-tty"
+ rm -f "$pkgdir/usr/share/fonts/misc/fonts.dir"
+
+ for i in AUTHORS NEWS COPYING README ChangeLog INSTALL; do
+ install -Dm644 $i "$pkgdir/usr/share/doc/$pkgname/$i"
+ done
+}
Deleted: cmatrix-tty
===================================================================
--- cmatrix-tty 2018-10-06 12:45:21 UTC (rev 390860)
+++ cmatrix-tty 2018-10-06 12:45:38 UTC (rev 390861)
@@ -1,39 +0,0 @@
-#!/bin/sh
-
-# a basic script for maximum pretty
-
-# X-based modes
-if [[ -n "$DISPLAY" && -x /usr/bin/aterm ]]; then
- exec aterm -fn mtx -e cmatrix -abox
- exit
-fi
-if [[ -n "$DISPLAY" && -x /usr/bin/xterm ]]; then
- exec xterm -fn mtx -en iso1252 -e cmatrix -abx
- exit
-fi
-
-# safe mode
-if [[ "$TERM" != "linux" ]]; then
- exec cmatrix -abo
- exit
-fi
-
-# custom font mode
-setfont matrix
-cmatrix -abol
-
-# and put the font back, if possible
-default_font=""
-if [[ -f /etc/vconsole.conf ]]; then
- while IFS='=' read -r k v; do
- if [ "${k# *}" = FONT ]; then
- default_font="$v"
- fi
- done < /etc/vconsole.conf
-fi
-if [[ -n "$default_font" ]]; then
- setfont "$default_font"
-else
- echo "No font in vconsole.conf, could not restore."
-fi
-
Copied: cmatrix/repos/community-x86_64/cmatrix-tty (from rev 390860, cmatrix/trunk/cmatrix-tty)
===================================================================
--- cmatrix-tty (rev 0)
+++ cmatrix-tty 2018-10-06 12:45:38 UTC (rev 390861)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# a basic script for maximum pretty
+
+# X-based modes
+if [[ -n "$DISPLAY" && -x /usr/bin/aterm ]]; then
+ exec aterm -fn mtx -e cmatrix -abox
+ exit
+fi
+if [[ -n "$DISPLAY" && -x /usr/bin/xterm ]]; then
+ exec xterm -fn mtx -en iso1252 -e cmatrix -abx
+ exit
+fi
+
+# safe mode
+if [[ "$TERM" != "linux" ]]; then
+ exec cmatrix -abo
+ exit
+fi
+
+# custom font mode
+setfont matrix
+cmatrix -abol
+
+# and put the font back, if possible
+default_font=""
+if [[ -f /etc/vconsole.conf ]]; then
+ while IFS='=' read -r k v; do
+ if [ "${k# *}" = FONT ]; then
+ default_font="$v"
+ fi
+ done < /etc/vconsole.conf
+fi
+if [[ -n "$default_font" ]]; then
+ setfont "$default_font"
+else
+ echo "No font in vconsole.conf, could not restore."
+fi
+
More information about the arch-commits
mailing list