summaryrefslogtreecommitdiff
path: root/community/cmatrix/PKGBUILD
blob: 5eb361b6da8fffa3a4d81935055b68cb4378432d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $Id: PKGBUILD 109862 2014-04-19 19:57:40Z jsteel $
# Maintainer: Jonathan Steel <jsteel at aur.archlinux.org>

pkgname=cmatrix
pkgver=1.2a
pkgrel=7
pkgdesc="Let you see the matrix code in your console"
arch=('i686' 'x86_64')
url="http://www.asty.org/cmatrix/"
license=('GPL')
depends=('ncurses' 'fontconfig')
install=$pkgname.install
source=(http://www.asty.org/cmatrix/dist/$pkgname-$pkgver.tar.gz)
md5sums=('ebfb5733104a258173a9ccf2669968a1')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  CPPFLAGS="-D_FORTIFY_SOURCE=0" ./configure \
    --prefix=/usr --mandir=/usr/share/man

  make
}

package() {
  cd "$srcdir/$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"
}