summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1656146d8bd2fa7a811b38d700418f82952eca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Contributor: perlawk
# Maintainer: aksr <aksr at t-com dot me>
pkgname=csnobol4
_pkgname=snobol4
pkgver=1.5
pkgrel=2 
pkgdesc="A port of Macro SNOBOL4, supports full SNOBOL4 language plus SPITBOL and other extensions."
url="http://www.snobol4.org/csnobol4/curr/"
arch=('i686' 'x86_64')
license=('GPL')
depends=()
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=("ftp://ftp.ultimate.com/snobol/snobol4-${pkgver}.tar.gz")
md5sums=('54ac3ddd51fb34ec63b1eb0ae7b99794')
sha1sums=('037a8eeba774b1085cfe8d1a741ec446182e4a9f')
sha256sums=('9f7ec649f2d700a30091af3bbd68db90b916d728200f915b1ba522bcfd0d7abd')

build() {
  cd "$srcdir/${_pkgname}-$pkgver"
  ./configure --prefix=/usr --without-ndbm --force-sdbm --lp64
  make 
}

package() {
  mkdir -p $pkgdir/usr/{bin,share/man/{man1,man3},lib/snobol4/1.4.1/}
  cd "$srcdir/${_pkgname}-$pkgver"
  sed -i "s!bin/snobol4-$pkgver!bin/snobol4!" sdb

  install snobol4 sdb "$pkgdir/usr/bin"
  /usr/bin/install -m 644 doc/snobol4.1 "$pkgdir/usr/share/man/man1"
  /usr/bin/install -m 644 doc/snolib.3 "$pkgdir/usr/share/man/man3"
  /usr/bin/install -m 644 doc/snobol4dbm.3 "$pkgdir/usr/share/man/man3"
  /usr/bin/install -m 644 doc/snobol4random.3 "$pkgdir/usr/share/man/man3"
  /usr/bin/install -m 644 doc/snobol4readline.3 "$pkgdir/usr/share/man/man3"
  /usr/bin/install -m 644 doc/snobol4time.3 "$pkgdir/usr/share/man/man3"

  for F in snolib/*.sno \
           include/h.h \
           include/snotypes.h \
           include/macros.h \
           include/load.h \
           include/dt.h \
           config.h \
           equ.h \
           version.h \
           doc/load.txt \
           README \
           host.sno ; do
    /usr/bin/install -m 644 $F "$pkgdir/usr/lib/snobol4/1.4.1" 
  done
}