[arch-commits] Commit in genxrdpattern (3 files)

Antonio Rojas arojas at archlinux.org
Sun Feb 9 10:03:51 UTC 2020


    Date: Sunday, February 9, 2020 @ 10:03:51
  Author: arojas
Revision: 375064

archrelease: copy trunk to extra-x86_64

Added:
  genxrdpattern/repos/
  genxrdpattern/repos/extra-x86_64/
  genxrdpattern/repos/extra-x86_64/PKGBUILD
    (from rev 375063, genxrdpattern/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: genxrdpattern/repos/extra-x86_64/PKGBUILD (from rev 375063, genxrdpattern/trunk/PKGBUILD)
===================================================================
--- repos/extra-x86_64/PKGBUILD	                        (rev 0)
+++ repos/extra-x86_64/PKGBUILD	2020-02-09 10:03:51 UTC (rev 375064)
@@ -0,0 +1,37 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=genxrdpattern
+pkgver=1.1
+pkgrel=1
+pkgdesc="Uses ObjCryst++ to generate a theoretical XRD pattern"
+arch=(x86_64)
+url="https://github.com/psavery/genXrdPattern"
+license=(GPL)
+depends=()
+makedepends=(cmake)
+source=($pkgname-$pkgver.tar.gz::"https://github.com/psavery/genXrdPattern/archive/$pkgver-linux.tar.gz"
+        https://github.com/psavery/genXrdPattern/releases/download/$pkgver-linux/objcryst.tgz)
+sha256sums=('9bc01dbf637d6520d8e2f5743bb1b46f8319432af5ce2d2a484a36615c1586d3'
+            '5523eae9937388260b3e491a1a11a443ab00a0961318ec92eee08f9366a0953f')
+
+prepare() {
+  mkdir -p build
+
+  sed -e 's|/user/psavery/src/objcryst/Fox/src|.|g' -i objcryst/Fox/src/Fox.dep
+}
+
+build() {
+  cd objcryst/Fox
+  make Fox-nogui shared=0 -j1
+
+  cd "$srcdir"/build
+  cmake ../genXrdPattern-$pkgver-linux \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DObjCryst_ROOT="$srcdir"/objcryst
+  make
+}
+
+package() {
+  cd build
+  install -Dm755 genXrdPattern -t "$pkgdir"/usr/bin
+}



More information about the arch-commits mailing list