[arch-commits] Commit in spglib/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Tue Nov 7 12:02:22 UTC 2017


    Date: Tuesday, November 7, 2017 @ 12:02:21
  Author: arojas
Revision: 308971

Fix undefined symbols

Modified:
  spglib/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-07 09:39:18 UTC (rev 308970)
+++ PKGBUILD	2017-11-07 12:02:21 UTC (rev 308971)
@@ -2,7 +2,7 @@
 
 pkgname=spglib
 pkgver=1.10.1
-pkgrel=1
+pkgrel=2
 pkgdesc="C library for finding and handling crystal symmetries"
 arch=(i686 x86_64)
 url="https://atztogo.github.io/spglib/"
@@ -9,13 +9,21 @@
 license=(custom)
 depends=(glibc)
 makedepends=()
-source=($pkgname-$pkgver.tar.gz::"https://github.com/atztogo/spglib/archive/v$pkgver.tar.gz")
-sha256sums=('8ed979cda82f6d440567197ec191bffcb82ee83c5bfe8a484c5a008dd00273f0')
+source=($pkgname-$pkgver.tar.gz::"https://github.com/atztogo/spglib/archive/v$pkgver.tar.gz"
+        spglib-undefined-symbols.patch::"https://github.com/atztogo/spglib/commit/54a30606.patch")
+sha256sums=('8ed979cda82f6d440567197ec191bffcb82ee83c5bfe8a484c5a008dd00273f0'
+            '1644feee810193ec9699bf28990315278af7e6b242a73fd7cb38facc3e7f27b5')
 
-build() {
+prepare() {
   cd $pkgname-$pkgver
+  patch -p1 -i ../spglib-undefined-symbols.patch # Fix undefined symbols
+
   touch INSTALL NEWS README AUTHORS
   autoreconf -vi
+}
+
+build() {
+  cd $pkgname-$pkgver
   ./configure --prefix=/usr
   make
 }



More information about the arch-commits mailing list