[arch-commits] Commit in cmatrix/trunk (PKGBUILD)

Kyle Keen kkeen at archlinux.org
Sat Oct 6 12:45:21 UTC 2018


    Date: Saturday, October 6, 2018 @ 12:45:21
  Author: kkeen
Revision: 390860

upgpkg: cmatrix 1.2-1  FS#60287

Modified:
  cmatrix/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++++++++++++++-----------
 1 file changed, 19 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-06 11:49:38 UTC (rev 390859)
+++ PKGBUILD	2018-10-06 12:45:21 UTC (rev 390860)
@@ -2,24 +2,32 @@
 # Contributor: Jonathan Steel <jsteel at archlinux.org>
 
 pkgname=cmatrix
-pkgver=1.2a
-pkgrel=12
+pkgver=1.2
+pkgrel=1
 pkgdesc="A curses-based scrolling 'Matrix'-like screen"
 arch=('x86_64')
 url="http://www.asty.org/cmatrix/"
-license=('GPL2')
+license=('GPL3')
 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"
+# "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=('ebfb5733104a258173a9ccf2669968a1'
+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
+  cd "$pkgname-$pkgver"
 
   CPPFLAGS="-D_FORTIFY_SOURCE=0" ./configure \
     --prefix=/usr --mandir=/usr/share/man
@@ -28,16 +36,16 @@
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd "$pkgname-$pkgver"
 
+  install -d "$pkgdir/usr/share/fonts/misc/"
+  install -d "$pkgdir/usr/share/kbd/consolefonts/"
   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"
+  rm -f "$pkgdir/usr/share/fonts/misc/fonts.dir"
 
-  for i in AUTHORS NEWS COPYING README ChangeLog TODO INSTALL; do
+  for i in AUTHORS NEWS COPYING README ChangeLog INSTALL; do
     install -Dm644 $i "$pkgdir/usr/share/doc/$pkgname/$i"
   done
 }



More information about the arch-commits mailing list