updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / stedi / PKGBUILD
blobe8828c04b87430771633688496385dd53dec7070
1 # Contributor: quasi <quasi@aur.archlinux.org>
3 pkgname=stedi
4 pkgver=1
5 pkgrel=1
6 pkgdesc="Text editor designed for FORM"
7 arch=('i686' 'x86_64')
8 url="http://www.nikhef.nl/~form/"
9 license=(custom:FORM)
10 md5sums=('77745f7a361197549b07b5d01b09fa4b' 
11                  '87e9bb7fea6baeb1ca6933d45d7753bd'
12                  '54d719d98c2c3f053ffccc64dddca4a0'
13                  'f80e8b0cbc3c0b5878b16a17b1cc3ed2'
14                  '51e4196b2612c8da55712674be35260b'
15                  '1936c5ab60f17625d06b07ba52c13400'
16                  '8ede17244954dfb2c6a0babd3c36f77a'
17                  '0ae52fd846a0fccf3023aceec9c8aa10'
18                  '000d62add454aff9b17d6bc5ac1668f0'
19                  '4987dcb51d634917a57dfa7fa9a84443'
20                  '0b545e19129bd5107b35ce2c8953c44b'
21                  '20dc403dadd1122e1502d5030c31a885')
23 source=(http://www.nikhef.nl/~form/maindir/others/stedi/st
24                 http://www.nikhef.nl/~form/maindir/others/stedi/stedi
25                 http://www.nikhef.nl/~form/maindir/others/stedi/termcap
26                 http://www.nikhef.nl/~form/maindir/others/stedi/stedi.xdf
27                 http://www.nikhef.nl/~form/maindir/others/stedi/stedi.hlp
28                 http://www.nikhef.nl/~form/maindir/others/stedi/macs.tar.gz
29                 http://www.nikhef.nl/~form/maindir/oldversions/FORMdistribution/stedi/stedi.ps
30                 http://www.nikhef.nl/~form/maindir/oldversions/FORMdistribution/stedi/stedi.pdf
31                 http://www.nikhef.nl/~form/maindir/oldversions/FORMdistribution/stedi/stedi.tar.gz
32                 license
33                 stedi.install
34                 stedihtml.tar.gz
35                 )
37 build() {
38         
39         mkdir -p $pkgdir/usr/bin/ || return 1
40         mkdir -p $pkgdir/usr/share/doc/stedi/ return 1
41         mkdir -p $pkgdir/usr/share/stedi/ return 1
43         echo "#!/bin/bash" > $pkgdir/usr/share/stedi/st || return 1
44         echo "mkdir -p ~/bin/" >> $pkgdir/usr/share/stedi/st || return 1
45         echo "cp -f /usr/share/stedi/termcap ~/bin/" >> $pkgdir/usr/share/stedi/st || return 1
46         echo "cp -f /usr/share/stedi/stedi.xdf ~/bin/" >> $pkgdir/usr/share/stedi/st || return 1
47         echo "cp -f /usr/share/stedi/stedi ~/bin/" >> $pkgdir/usr/share/stedi/st || return 1
48         echo "export TERMCAP=~/bin/termcap" >> $pkgdir/usr/share/stedi/st || return 1
49         echo "export STEDIHLP=~/bin/usr/share/stedi/" >> $pkgdir/usr/share/stedi/st || return 1
50         echo "export STEDIDFT=~/bin/" >> $pkgdir/usr/share/stedi/st || return 1
51         echo "export  STEDIMAC=/usr/share/stedi/macs" >> $pkgdir/usr/share/stedi/st || return 1
52         cat $startdir/st | grep -v "#" >> $pkgdir/usr/share/stedi/st || return 1
53         cp -f $startdir/stedi $pkgdir/usr/share/stedi/ || return 1
54         ln -s -f ../share/stedi/st $pkgdir/usr/bin/st || return 1
55         ln -s -f ../share/stedi/stedi $pkgdir/usr/bin/stedi || return 1
56         cp -f $startdir/termcap $pkgdir/usr/share/stedi/ || return 1
57         tar zxvf $startdir/stedihtml.tar.gz -C $pkgdir/usr/share/doc/stedi/ || return 1
58         cp -f $startdir/stedi.ps $pkgdir/usr/share/doc/stedi/ || return 1
59         cp -f $startdir/stedi.pdf $pkgdir/usr/share/doc/stedi/ || return 1
60         cp -f $startdir/stedi.tar.gz $pkgdir/usr/share/stedi/ || return 1
61         tar zxvf $startdir/macs.tar.gz -C $pkgdir/usr/share/stedi/ || return 1
62         cp -f $startdir/stedi.xdf $pkgdir/usr/share/stedi/ || return 1
63         cp -f $startdir/stedi.hlp $pkgdir/usr/share/doc/stedi/ || return 1
64         cp -f $startdir/license $pkgdir/usr/share/doc/stedi/ || return 1
66         chmod 755 $pkgdir/usr/share/stedi/st || return 1
67         chmod 755 $pkgdir/usr/share/stedi/stedi || return 1
68