summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Levy2018-12-16 18:51:33 -0500
committerBenjamin Levy2018-12-16 18:51:33 -0500
commitb6dd286501e73a323045089aad1a633752a34bad (patch)
tree14926d47ec4849212c0aff1da2b759e90da0b99d
downloadaur-b6dd286501e73a323045089aad1a633752a34bad.tar.gz
Bump version
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD43
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..79313b56b25
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = cmatrix-git
+ pkgdesc = A curses-based scrolling 'Matrix'-like screen
+ pkgver = 1.2
+ pkgrel = 1
+ url = http://www.asty.org/cmatrix/
+ arch = x86_64
+ license = GPL3
+ makedepends = fontconfig
+ depends = ncurses
+ optdepends = fontconfig: custom font
+ source = git+https://github.com/abishekvashok/cmatrix
+ md5sums = SKIP
+
+pkgname = cmatrix-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8b60313887f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Benjamin Levy <blevy@protonmail.com>
+
+pkgname=cmatrix-git
+pkgver=1.2.r45.g70be5c3
+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')
+source=("git+https://github.com/abishekvashok/cmatrix")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/cmatrix"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "cmatrix"
+
+ autoreconf -i
+ CPPFLAGS="-D_FORTIFY_SOURCE=0" ./configure \
+ --prefix=/usr --mandir=/usr/share/man
+
+ make
+}
+
+package() {
+ cd "cmatrix"
+
+ install -d "$pkgdir/usr/share/fonts/misc/"
+ install -d "$pkgdir/usr/share/kbd/consolefonts/"
+ make DESTDIR="$pkgdir" install
+
+ 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/cmatrix/$i"
+ done
+}