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

Antonio Rojas arojas at archlinux.org
Mon Sep 16 16:23:48 UTC 2019


    Date: Monday, September 16, 2019 @ 16:23:47
  Author: arojas
Revision: 510892

Switch back to upstream source, website is back online

Modified:
  tachyon/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-16 16:06:24 UTC (rev 510891)
+++ PKGBUILD	2019-09-16 16:23:47 UTC (rev 510892)
@@ -3,7 +3,7 @@
 
 pkgname=tachyon
 pkgver=0.98.9
-pkgrel=6
+pkgrel=7
 pkgdesc="Multithreaded ray tracing software"
 arch=(x86_64)
 url="http://jedi.ks.uiuc.edu/~johns/raytracer/"
@@ -10,15 +10,16 @@
 license=(BSD)
 depends=(libjpeg-turbo libpng)
 makedepends=()
-#source=("http://jedi.ks.uiuc.edu/~johns/raytracer/files/$pkgver/$pkgname-$pkgver.tar.gz" 'enable-jpeg-png.patch')
-source=("https://mirrors.mit.edu/sage/spkg/upstream/tachyon/tachyon-$pkgver.tar.bz2" enable-jpeg-png.patch tachyon-system-cflags.patch)
-sha256sums=('e8888a410610e2726dca32f40f31ff34a83cb474b41e5a1e0ac8bbb175e1a466'
+source=("http://jedi.ks.uiuc.edu/~johns/raytracer/files/$pkgver/$pkgname-$pkgver.tar.gz"
+        enable-jpeg-png.patch
+        tachyon-system-cflags.patch)
+sha256sums=('c6a3298ded4dc3e9390447819e1dac59b62c3d2d46d4154312ffe71549ee40d7'
             'ecd6ab6274879e0f971e2eba17871fffe2e24dcc9a332013a0b100ee4857cc2c'
             '34f703af96afe117c851a5825b7fd6b71211c09e4a8c3b836d012d250bb6918f')
 _target=linux-64-thr
 
 prepare(){
-  cd $pkgname-$pkgver
+  cd $pkgname
 # enable JPEG and PNG support
   patch -p0 -i ../enable-jpeg-png.patch
 # use system build flags
@@ -27,15 +28,20 @@
 }
 
 build() {
-  cd $pkgname-$pkgver/unix
+  cd $pkgname/unix
   make $_target CC="gcc ${CFLAGS} ${LDFLAGS}"
 }
 
 package() {
-  cd $pkgname-$pkgver/compile/$_target
+  cd $pkgname/compile/$_target
   install -D -m 755 tachyon $pkgdir/usr/bin/tachyon
   install -D -m 644 libtachyon.a $pkgdir/usr/lib/libtachyon.a
 
+  cd "$srcdir"/$pkgname/scenes
+  install -d "$pkgdir"/usr/share/tachyon/scenes/imaps
+  install -m 644 README *.dat *.cam *.ac "$pkgdir"/usr/share/tachyon/scenes
+  install -m 644 imaps/* "$pkgdir"/usr/share/tachyon/scenes/imaps
+
   install -d "$pkgdir"/usr/share/licenses/tachyon
-  install "$srcdir"/$pkgname-$pkgver/Copyright "$pkgdir"/usr/share/licenses/tachyon
+  install "$srcdir"/$pkgname/Copyright "$pkgdir"/usr/share/licenses/tachyon
 }


More information about the arch-commits mailing list