[arch-commits] Commit in libcerf/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Thu Sep 20 13:31:30 UTC 2018
Date: Thursday, September 20, 2018 @ 13:31:30
Author: arojas
Revision: 383659
Update to 1.6
Modified:
libcerf/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-09-20 13:27:44 UTC (rev 383658)
+++ PKGBUILD 2018-09-20 13:31:30 UTC (rev 383659)
@@ -1,7 +1,7 @@
# Maintainer: Antonio Rojas <arojas at archlinux.org>
pkgname=libcerf
-pkgver=1.5
+pkgver=1.6
pkgrel=1
pkgdesc="Self-contained numeric library that provides an efficient and accurate implementation of complex error functions"
arch=(x86_64)
@@ -8,19 +8,26 @@
url="http://apps.jcns.fz-juelich.de/doku/sc/libcerf"
license=(custom)
depends=(glibc)
-makedepends=()
+makedepends=(cmake)
source=(http://apps.jcns.fz-juelich.de/src/libcerf/$pkgname-$pkgver.tgz)
-sha256sums=('e36dc147e7fff81143074a21550c259b5aac1b99fc314fc0ae33294231ca5c86')
+sha256sums=('43b493f3b145ac38cc7b9318c301e826510c1048d02611c5798a062c33992391')
+prepare() {
+ mkdir -p build
+
+ sed -e 's|/man/|/share/man/|g' -i $pkgname-$pkgver/man/CMakeLists.txt
+}
+
build() {
- cd $pkgname-$pkgver
- ./configure --prefix=/usr
+ cd build
+ cmake ../$pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
- cd $pkgname-$pkgver
+ cd build
make DESTDIR="$pkgdir" install
- install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list