summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Kudelin2019-12-19 13:46:14 +0300
committerAnton Kudelin2019-12-19 13:46:14 +0300
commit245ce0f5d9398c1423551ec5fa507fd1bb8dd36a (patch)
treeb00df474c40bce636177039e4e0c23add54fb171
parent39174b20b3514ef71f421883239355ac227e80d2 (diff)
downloadaur-245ce0f5d9398c1423551ec5fa507fd1bb8dd36a.tar.gz
Changed version naming
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD35
2 files changed, 24 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 633edcd2100..0f34eefa672 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = platon
pkgdesc = A Multipurpose Crystallographic Tool
- pkgver = 2019.12.16
+ pkgver = 191219
pkgrel = 1
url = http://www.cryst.chem.uu.nl/spek/platon
arch = x86_64
@@ -11,7 +11,7 @@ pkgbase = platon
depends = gcc-libs
depends = libx11
source = https://www.platonsoft.nl/spek/xraysoft/unix/platon.tar.gz
- sha256sums = 3f05cc40c9cf903195a2788d0e77497ee0e38b14b0869aba57ab60097628eb4e
+ sha256sums = SKIP
pkgname = platon
diff --git a/PKGBUILD b/PKGBUILD
index d8441402283..372c4abbe81 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Anton Kudelin <kudelin at protonmail dot com>
pkgname=platon
-pkgver=2019.12.16
+pkgver=191219
pkgrel=1
pkgdesc="A Multipurpose Crystallographic Tool"
arch=("x86_64")
@@ -10,23 +10,32 @@ license=('custom')
depends=('gcc-libs' 'libx11')
makedepends=('gcc-fortran' 'gzip' 'tar')
source=("https://www.platonsoft.nl/spek/xraysoft/unix/$pkgname.tar.gz")
-sha256sums=('3f05cc40c9cf903195a2788d0e77497ee0e38b14b0869aba57ab60097628eb4e')
+sha256sums=('SKIP')
+
+prepare() {
+ cd $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 $pkgname
- mkdir share
- gzip -d *.gz
- tar xf *.tar -C share
- gfortran $FCFLAGS -o platon platon.f xdrvr.c -lX11
+ cd $pkgname
+ gfortran $FCFLAGS -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 $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 *