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

Alexander Rødseth arodseth at archlinux.org
Sat Feb 20 18:22:53 UTC 2016


    Date: Saturday, February 20, 2016 @ 19:22:53
  Author: arodseth
Revision: 162864

upgpkg: algol68k 2.8-3

Modified:
  algol68g/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-20 17:33:36 UTC (rev 162863)
+++ PKGBUILD	2016-02-20 18:22:53 UTC (rev 162864)
@@ -1,10 +1,11 @@
 # $Id$
-# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
 # Contributor: karolina.lindqvist at kramnet.se
 
-pkgname=algol68g
+pkgbase=algol68k
+pkgname=('algol68g' 'algol68g-doc')
 pkgver=2.8
-pkgrel=2
+pkgrel=3
 pkgdesc='Algol 68 Genie, an Algol 68 compiler-interpreter'
 arch=('x86_64' 'i686')
 url='http://www.xs4all.nl/~jmvdveer/algol.html'
@@ -12,9 +13,11 @@
 depends=('gsl' 'plotutils')
 optdepends=('postgresql-libs: for postgresql support')
 source=("https://distfiles.macports.org/algol68g/algol68g-$pkgver.tar.gz"
-        'plotutils.patch')
+        'plotutils.patch'
+        'http://ftp.genotec.ch/pub/FreeBSD/ports/distfiles/a68g-doc.pdf')
 sha256sums=('0c6fc7213f5a00f978faef2d09622d2c3ee01c87594dd6f5c51cd532b719861a'
-            '50afcc7812d117e5f0a2f5240c9cd58f8bfcc04b3da0634b9aa0ab06183ed0aa')
+            '50afcc7812d117e5f0a2f5240c9cd58f8bfcc04b3da0634b9aa0ab06183ed0aa'
+            '064b6761207d937aa704d245fc871a072f5a33ea23a346cb136ec8b2078ea321')
 
 prepare() {
   cd "$pkgname-$pkgver"
@@ -29,10 +32,14 @@
   make
 }
 
-package() {
-  cd "$pkgname-$pkgver"
+package_algol68g() {
+  make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" \
+    docdir="/usr/share/doc/$pkgname" install
+}
 
-  make DESTDIR="$pkgdir" docdir="/usr/share/doc/$pkgname" install
+package_algol68g-doc() {
+  install -Dm644 a68g-doc.pdf \
+    "$pkgdir/usr/share/doc/algol68g/learning_algol.pdf"
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list