[arch-commits] Commit in mmtf-cpp/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Mon Mar 1 08:36:26 UTC 2021
Date: Monday, March 1, 2021 @ 08:36:26
Author: arojas
Revision: 408938
Replace libmmtf (FS#69838)
Modified:
mmtf-cpp/trunk/PKGBUILD
----------+
PKGBUILD | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-03-01 07:10:26 UTC (rev 408937)
+++ PKGBUILD 2021-03-01 08:36:26 UTC (rev 408938)
@@ -2,7 +2,7 @@
pkgname=mmtf-cpp
pkgver=1.0.0
-pkgrel=2
+pkgrel=3
pkgdesc="The pure C++ implementation of the MMTF API, decoder and encoder"
arch=(any)
url="http://mmtf.rcsb.org/"
@@ -9,22 +9,19 @@
license=(MIT)
depends=(msgpack-c)
makedepends=(cmake)
+conflicts=(libmmtf)
+provides=(libmmtf)
+replaces=(libmmtf)
source=($pkgname-$pkgver.tar.gz::"https://github.com/rcsb/mmtf-cpp/archive/v$pkgver.tar.gz")
sha256sums=('881f69c4bb56605fa63fd5ca50842facc4947f686cbf678ad04930674d714f40')
-prepare() {
- mkdir -p build
-}
-
build() {
- cd build
- cmake ../$pkgname-$pkgver \
+ cmake -B build -S $pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr
- make
+ cmake --build build
}
package() {
- cd build
- make DESTDIR="$pkgdir" install
- install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+ DESTDIR="$pkgdir" cmake --install build
+ install -Dm644 $pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
More information about the arch-commits
mailing list