archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / cmatrix / trunk / PKGBUILD
blobc4c9fa34b03db54a0801bbf5ccf614c4afe8ce11
1 # Maintainer: Kyle Keen <keenerd@gmail.com>
2 # Contributor: Jonathan Steel <jsteel at archlinux.org>
4 pkgname=cmatrix
5 pkgver=2.0
6 pkgrel=2
7 pkgdesc="A curses-based scrolling 'Matrix'-like screen"
8 arch=('x86_64')
9 url="https://www.asty.org/cmatrix/"
10 license=('GPL3')
11 depends=('ncurses')
12 # source already ships prebuild fonts - no need to add more deps to satisfy cmake
13 makedepends=('cmake')
14 optdepends=('kbd: cmatrix-tty custom font'
15             'xterm: cmatrix-tty custom font')
16 # "https://www.asty.org/$pkgname/dist/$pkgname-$pkgver.tar.gz"
17 source=("cmatrix-$pkgver.tgz::https://github.com/abishekvashok/cmatrix/archive/v$pkgver.tar.gz"
18         "cmatrix-tty")
19 sha256sums=('ad93ba39acd383696ab6a9ebbed1259ecf2d3cf9f49d6b97038c66f80749e99a'
20             '94890bec3d04f076ae43c56a7768e67cff2a209e02819e2ce80fd61173b15a30')
22 prepare() {
23   mkdir build
26 build() {
27   cd build
28   cmake ../$pkgname-$pkgver \
29     -D CMAKE_BUILD_TYPE=Release \
30     -D CMAKE_INSTALL_PREFIX=/usr \
31     #-D CONSOLE_FONTS_DIRS=/usr/share/kbd/consolefonts \
32     #-D X_FONTS_DIRS=/usr/share/fonts/misc \
33     #-D UNIX=true
34   make
37 package() {
38   # only the binary has a target to install
39   make -C build DESTDIR="$pkgdir" install
41   cd $pkgname-$pkgver
43   # install X font
44   install -D -m644 mtx.pcf "$pkgdir"/usr/share/fonts/misc/mtx.pcf
46   # install console font
47   install -D -m644 matrix.fnt "$pkgdir"/usr/share/kbd/consolefonts/matrix.fnt
48   install -D -m644 matrix.psf.gz "$pkgdir"/usr/share/kbd/consolefonts/matrix.psf.gz
50   # todo: fix the pretty wrapper 
51   #install -Dm755 "$srcdir/cmatrix-tty" "$pkgdir/usr/bin/cmatrix-tty"
53   for i in AUTHORS NEWS COPYING README ChangeLog INSTALL; do
54     install -Dm644 $i "$pkgdir/usr/share/doc/$pkgname/$i"
55   done
57   install -Dm644 cmatrix.1     "$pkgdir/usr/share/man/man1/cmatrix.1"