[arch-commits] Commit in cmatrix/repos (8 files)

Kyle Keen kkeen at archlinux.org
Mon Jan 26 16:39:50 UTC 2015


    Date: Monday, January 26, 2015 @ 17:39:49
  Author: kkeen
Revision: 126606

archrelease: copy trunk to community-i686, community-x86_64

Added:
  cmatrix/repos/community-i686/PKGBUILD
    (from rev 126605, cmatrix/trunk/PKGBUILD)
  cmatrix/repos/community-i686/cmatrix-tty
    (from rev 126605, cmatrix/trunk/cmatrix-tty)
  cmatrix/repos/community-i686/cmatrix.install
    (from rev 126605, cmatrix/trunk/cmatrix.install)
  cmatrix/repos/community-x86_64/PKGBUILD
    (from rev 126605, cmatrix/trunk/PKGBUILD)
  cmatrix/repos/community-x86_64/cmatrix-tty
    (from rev 126605, cmatrix/trunk/cmatrix-tty)
  cmatrix/repos/community-x86_64/cmatrix.install
    (from rev 126605, cmatrix/trunk/cmatrix.install)
Deleted:
  cmatrix/repos/community-i686/cmatrix-tty
  cmatrix/repos/community-x86_64/cmatrix-tty

----------------------------------+
 /cmatrix-tty                     |   78 +++++++++++++++++++++++++++++++++++++
 community-i686/PKGBUILD          |   44 ++++++++++++++++++++
 community-i686/cmatrix-tty       |   33 ---------------
 community-i686/cmatrix.install   |    6 ++
 community-x86_64/PKGBUILD        |   44 ++++++++++++++++++++
 community-x86_64/cmatrix-tty     |   33 ---------------
 community-x86_64/cmatrix.install |    6 ++
 7 files changed, 178 insertions(+), 66 deletions(-)

Copied: cmatrix/repos/community-i686/PKGBUILD (from rev 126605, cmatrix/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2015-01-26 16:39:49 UTC (rev 126606)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+
+pkgname=cmatrix
+pkgver=1.2a
+pkgrel=10
+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')
+install=$pkgname.install
+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
+}

Deleted: community-i686/cmatrix-tty
===================================================================
--- community-i686/cmatrix-tty	2015-01-26 16:35:20 UTC (rev 126605)
+++ community-i686/cmatrix-tty	2015-01-26 16:39:49 UTC (rev 126606)
@@ -1,33 +0,0 @@
-#!/bin/bash
-
-# 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
-    default_font="$(grep '^[ \t]*FONT' /etc/vconsole.conf | cut -d '=' -f 2)"
-fi
-if [[ -n "$default_font" ]]; then
-    setfont "$default_font"
-fi
-

Copied: cmatrix/repos/community-i686/cmatrix-tty (from rev 126605, cmatrix/trunk/cmatrix-tty)
===================================================================
--- community-i686/cmatrix-tty	                        (rev 0)
+++ community-i686/cmatrix-tty	2015-01-26 16:39:49 UTC (rev 126606)
@@ -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
+

Copied: cmatrix/repos/community-i686/cmatrix.install (from rev 126605, cmatrix/trunk/cmatrix.install)
===================================================================
--- community-i686/cmatrix.install	                        (rev 0)
+++ community-i686/cmatrix.install	2015-01-26 16:39:49 UTC (rev 126606)
@@ -0,0 +1,6 @@
+post_install() {
+  if [[ -x /usr/bin/fc-cache ]]; then
+    fc-cache
+  fi
+}
+

Copied: cmatrix/repos/community-x86_64/PKGBUILD (from rev 126605, cmatrix/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2015-01-26 16:39:49 UTC (rev 126606)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+
+pkgname=cmatrix
+pkgver=1.2a
+pkgrel=10
+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')
+install=$pkgname.install
+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
+}

Deleted: community-x86_64/cmatrix-tty
===================================================================
--- community-x86_64/cmatrix-tty	2015-01-26 16:35:20 UTC (rev 126605)
+++ community-x86_64/cmatrix-tty	2015-01-26 16:39:49 UTC (rev 126606)
@@ -1,33 +0,0 @@
-#!/bin/bash
-
-# 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
-    default_font="$(grep '^[ \t]*FONT' /etc/vconsole.conf | cut -d '=' -f 2)"
-fi
-if [[ -n "$default_font" ]]; then
-    setfont "$default_font"
-fi
-

Copied: cmatrix/repos/community-x86_64/cmatrix-tty (from rev 126605, cmatrix/trunk/cmatrix-tty)
===================================================================
--- community-x86_64/cmatrix-tty	                        (rev 0)
+++ community-x86_64/cmatrix-tty	2015-01-26 16:39:49 UTC (rev 126606)
@@ -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
+

Copied: cmatrix/repos/community-x86_64/cmatrix.install (from rev 126605, cmatrix/trunk/cmatrix.install)
===================================================================
--- community-x86_64/cmatrix.install	                        (rev 0)
+++ community-x86_64/cmatrix.install	2015-01-26 16:39:49 UTC (rev 126606)
@@ -0,0 +1,6 @@
+post_install() {
+  if [[ -x /usr/bin/fc-cache ]]; then
+    fc-cache
+  fi
+}
+



More information about the arch-commits mailing list