summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAnton Kudelin2020-11-07 20:58:01 +0300
committerAnton Kudelin2020-11-07 20:58:01 +0300
commit84e2ecafad696884c24cea29a6a826112e7e1ceb (patch)
treedff25459d517b0397c7c545c6d6dad100d88044b /PKGBUILD
parent245ce0f5d9398c1423551ec5fa507fd1bb8dd36a (diff)
downloadaur-84e2ecafad696884c24cea29a6a826112e7e1ceb.tar.gz
Updated a bit
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 *