summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD61
2 files changed, 31 insertions, 47 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a2aa9e1ba0b2..3e92e6607a3d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,25 +1,22 @@
pkgbase = vesta
- pkgdesc = 3D visualization program for structural models, volumetric data such as electron/nuclear densities, and crystal morphologies.
+ pkgdesc = Visualization for Electronic and STructural Analysis
pkgver = 3.5.8
- pkgrel = 1
+ pkgrel = 2
url = https://jp-minerals.org/vesta
install = vesta.install
arch = x86_64
- license = custom
+ license = LicenseRef-vesta-license
+ makedepends = desktop-file-utils
+ makedepends = libxtst
depends = gtk3
depends = gtk2
depends = glu
- depends = desktop-file-utils
- depends = libxtst
depends = java-environment
+ source = https://jp-minerals.org/vesta/archives/3.5.8/VESTA-gtk3.tar.bz2
source = VESTA.desktop
source = vesta.install
- md5sums = fdd7040720e4b58a26caa7db09669acf
- md5sums = caabe467168af9e44cf380af1abfe280
+ sha256sums = 78bef025c2b31f1d64c9c7e06ad2b139d252b3a686893ee79ac74b3021868df8
sha256sums = 4eae00cd081d7b628858a03593a265c6f7698461bd265b873198d5c347c151e4
sha256sums = 35d44e99185caa17fbf69938bcccc252fde70fb7bc2d407ef376ba512db08b43
- source_x86_64 = https://jp-minerals.org/vesta/archives/3.5.8/VESTA-gtk3.tar.bz2
- md5sums_x86_64 = d13881c3c785b5461bbefa3ba59efd91
- sha256sums_x86_64 = 78bef025c2b31f1d64c9c7e06ad2b139d252b3a686893ee79ac74b3021868df8
pkgname = vesta
diff --git a/PKGBUILD b/PKGBUILD
index 5eeea94b9b43..a05928a8aa95 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,49 +1,36 @@
-# Maintainer: b00rt00s <b00rt00s.aur@gmail.com>
+# Maintainer: Anton Kudelin <kudelin at proton dot me>
+# Contributor: b00rt00s <b00rt00s.aur@gmail.com>
pkgname=vesta
pkgver=3.5.8
-pkgrel=1
-pkgdesc="3D visualization program for structural models, volumetric data such as electron/nuclear densities, and crystal morphologies."
+pkgrel=2
+pkgdesc="Visualization for Electronic and STructural Analysis"
url="https://jp-minerals.org/vesta"
-license=('custom')
-arch=('x86_64')
-depends=('gtk3' 'gtk2' 'glu' 'desktop-file-utils' 'libxtst' 'java-environment')
-
-_url="https://jp-minerals.org/vesta/archives"
-source_x86_64=("${_url}/${pkgver}/VESTA-gtk3.tar.bz2")
-source=('VESTA.desktop' 'vesta.install')
-md5sums=('fdd7040720e4b58a26caa7db09669acf'
- 'caabe467168af9e44cf380af1abfe280')
-md5sums_x86_64=('d13881c3c785b5461bbefa3ba59efd91')
-sha256sums=('4eae00cd081d7b628858a03593a265c6f7698461bd265b873198d5c347c151e4'
+license=(LicenseRef-vesta-license)
+arch=(x86_64)
+depends=(gtk3 gtk2 glu java-environment)
+makedepends=(desktop-file-utils libxtst)
+source=($url/archives/$pkgver/VESTA-gtk3.tar.bz2 VESTA.desktop vesta.install)
+sha256sums=('78bef025c2b31f1d64c9c7e06ad2b139d252b3a686893ee79ac74b3021868df8'
+ '4eae00cd081d7b628858a03593a265c6f7698461bd265b873198d5c347c151e4'
'35d44e99185caa17fbf69938bcccc252fde70fb7bc2d407ef376ba512db08b43')
-sha256sums_x86_64=('78bef025c2b31f1d64c9c7e06ad2b139d252b3a686893ee79ac74b3021868df8')
install="vesta.install"
+package() {
+ cd "$pkgdir"
+ install -dm755 opt
+ cp -a "$srcdir/VESTA-gtk3" opt/VESTA
+ chmod -R 755 opt/VESTA
-package() {
- #prepare dirs
- mkdir -p ${pkgdir}/opt
- mkdir -p ${pkgdir}/usr/bin
- mkdir -p ${pkgdir}/usr/share/licenses/vesta
- mkdir -p ${pkgdir}/usr/share/applications/
-
-
- cp -a ${srcdir}/VESTA-gtk3 ${pkgdir}/opt/VESTA
- chmod 755 ${pkgdir}/opt/VESTA
-
- #install desktop file
- install -m 644 ${srcdir}/VESTA.desktop ${pkgdir}/usr/share/applications/
+ # installing the desktop file
+ install -Dm644 "$srcdir/VESTA.desktop" usr/share/applications/VESTA.desktop
- #link licence
- ( cd ${pkgdir}/usr/share/licenses/vesta
- ln -sf /opt/VESTA/Library_License vesta
- )
+ # installing the license
+ install -Dm644 "$srcdir/VESTA-gtk3/LICENSE" \
+ usr/share/licenses/$pkgname/LICENSE
- #link executable
- (
- cd ${pkgdir}/usr/bin
- ln -sf /opt/VESTA/VESTA VESTA
- )
+ # creating a link for the executable
+ install -dm755 usr/bin
+ ln -sf /opt/VESTA/VESTA usr/bin/VESTA
}