summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Ehlert2020-01-10 11:33:05 +0100
committerSebastian Ehlert2020-01-10 11:48:21 +0100
commit4c3d1a9078ff0e37a3c5ca1388e23394ce26bd8c (patch)
treee451dd4f6556a1136bb10f55b322361b45bfc1dc
downloadaur-4c3d1a9078ff0e37a3c5ca1388e23394ce26bd8c.tar.gz
initial PKGBUILD version for xtb-git
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD41
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0071ce9b637
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = xtb-git
+ pkgdesc = Semiempirical Extended Tight-Binding Program Package
+ pkgver = 6.2.2.r48.d40ebcd
+ pkgrel = 1
+ url = https://github.com/grimme-lab/xtb
+ arch = x86_64
+ license = LGPL3
+ makedepends = git
+ makedepends = meson
+ makedepends = ninja
+ depends = openblas
+ depends = lapack
+ provides = xtb
+ conflicts = xtb
+ source = git+https://github.com/grimme-lab/xtb.git#branch=master
+ md5sums = SKIP
+
+pkgname = xtb-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c05e3295ba6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Sebastian Ehlert <awvwgk at gmail dot com>
+
+_pkgname=xtb
+pkgname="${_pkgname}-git"
+pkgver=6.2.2.r48.d40ebcd
+pkgrel=1
+arch=('x86_64')
+url="https://github.com/grimme-lab/xtb"
+provides=("${_pkgname}")
+depends=('openblas' 'lapack')
+makedepends=('git' 'meson' 'ninja')
+conflicts=("${_pkgname}")
+license=('LGPL3')
+pkgdesc="Semiempirical Extended Tight-Binding Program Package"
+source=("git+https://github.com/grimme-lab/xtb.git#branch=master")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ _parent_ver=$(git describe --tags --abbrev=0 | sed 's/\([^-]*-\)g/r\1/;s/-//g' | tr -d '[:alpha:]' )
+ printf "%s.r%s.%s" \
+ "${_parent_ver}" \
+ "$(git rev-list --count HEAD)" \
+ "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ mkdir -p "${srcdir}/${_pkgname}"/_build
+ cd "${srcdir}/${_pkgname}"/_build
+ meson setup . .. \
+ --buildtype release \
+ --warnlevel 0 \
+ --prefix=/usr \
+ -Dla_backend=openblas
+ ninja
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"/_build
+ DESTDIR="$pkgdir" ninja install
+}