summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 11 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 372c4abbe81..2aa2eb24ea0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Anton Kudelin <kudelin at protonmail dot com>
pkgname=platon
-pkgver=191219
+pkgver=171020
pkgrel=1
pkgdesc="A Multipurpose Crystallographic Tool"
arch=("x86_64")
@@ -13,29 +13,29 @@ source=("https://www.platonsoft.nl/spek/xraysoft/unix/$pkgname.tar.gz")
sha256sums=('SKIP')
prepare() {
- cd $pkgname
+ cd "$srcdir/$pkgname"
mkdir share
gzip -d *.gz
tar xf *.tar -C share
}
pkgver() {
- cd $srcdir/$pkgname
+ cd "$srcdir/$pkgname"
grep "IGBL(4) = " platon.f | awk -F'= ' '{print $2}'
}
build() {
- cd $pkgname
- gfortran $FCFLAGS -o platon platon.f xdrvr.c -lX11
+ cd "$srcdir/$pkgname"
+ gfortran $CFLAGS -o platon platon.f xdrvr.c -lX11
}
package() {
- cd $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
+ 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 *