blob: 182b0d20bd1a4247b201e4471e16cfaae7936127 (
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
|
# Maintainer: Anton Kudelin <kudelin at proton dot me>
pkgname=platon
pkgver=081024
pkgrel=1
pkgdesc="A Multipurpose Crystallographic Tool"
arch=(x86_64)
url="https://www.platonsoft.nl"
license=(custom)
depends=(gcc-libs libx11)
makedepends=(gcc-fortran)
source=($pkgname-$pkgver.tar.gz::"http://www.platonsoft.nl/xraysoft/unix/$pkgname.tar.gz")
sha256sums=('SKIP')
prepare() {
cd "$srcdir/$pkgname"
mkdir share
gzip -d *.gz
tar xf *.tar -C share
}
pkgver() {
cd "$srcdir/$pkgname"
grep "IGBL(4) = " platon.f | awk -F'= ' '{print $2}'
}
build() {
cd "$srcdir/$pkgname"
gfortran -O3 -o platon platon.f xdrvr.c -lX11
}
package() {
cd "$srcdir/$pkgname"
install -dm755 "$pkgdir"/usr/{bin,share/licenses/$pkgname}
install -m755 platon "$pkgdir/usr/bin"
cp -r share/* "$pkgdir/usr/share"
chmod -R 755 "$pkgdir/usr/share"
cat <<EOF > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
C **********************************************************************
C * THIS PROGRAM MAY BE USED FREE OF CHARGE ONLY FOR USE WITHIN THE *
C * ACADEMIC COMMUNITY AND NOT FOR PROFIT WITHOUT EXPLICIT PERMISSION *
C * IT IS TO BE UNDERSTOOD THAT THE AUTHOR OR HIS UNIVERSITY CANNOT *
C * BE HELD RESPONSIBLE FOR ANY PROBLEMS CAUSED BY ERRORS IN THE CODE *
C **********************************************************************
EOF
}
|