Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
285
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: James Spencer <james.s.spencer@gmail.com>
  2.  
  3. pkgname=libxc
  4. pkgver=4.3.4
  5. pkgrel=4
  6. pkgdesc="A library of exchange-correlation functionals for density-functional theory"
  7. arch=('x86_64')
  8. url="https://www.tddft.org/programs/libxc"
  9. license=('MPL2')
  10. depends=('gcc-libs')
  11. makedepends=('gcc-fortran' 'cmake' 'sed')
  12. source=("https://gitlab.com/$pkgname/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.bz2")
  13. sha256sums=('0efe8b33d151de8787e33c4ba8e2161ffb9da978753f3bd12c5c0a018e7d3ef5')
  14. options=(staticlibs)
  15.  
  16. prepare() {
  17. mkdir $srcdir/build
  18. sed -i "/func_info.c/ a func_reference.c" $srcdir/$pkgname-$pkgver/CMakeLists.txt
  19. }
  20.  
  21. build() {
  22. cd $srcdir/build
  23. cmake ../$pkgname-$pkgver \
  24. -DCMAKE_INSTALL_PREFIX=/usr \
  25. -DBUILD_SHARED_LIBS=ON \
  26. -DENABLE_FORTRAN=ON \
  27. -DENABLE_FORTRAN03=ON
  28. make
  29. }
  30.  
  31. package() {
  32. cd $srcdir/build
  33. make DESTDIR=$pkgdir install
  34. }
Advertisement
RAW Paste Data Copied
Advertisement