[arch-commits] Commit in (4 files)
Antonio Rojas
arojas at archlinux.org
Mon Mar 1 08:37:05 UTC 2021
Date: Monday, March 1, 2021 @ 08:37:05
Author: arojas
Revision: 876321
extra2community: Moving mmtf-cpp from extra to community
Added:
mmtf-cpp/
mmtf-cpp/repos/
mmtf-cpp/trunk/
mmtf-cpp/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Added: mmtf-cpp/trunk/PKGBUILD
===================================================================
--- mmtf-cpp/trunk/PKGBUILD (rev 0)
+++ mmtf-cpp/trunk/PKGBUILD 2021-03-01 08:37:05 UTC (rev 876321)
@@ -0,0 +1,27 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=mmtf-cpp
+pkgver=1.0.0
+pkgrel=3
+pkgdesc="The pure C++ implementation of the MMTF API, decoder and encoder"
+arch=(any)
+url="http://mmtf.rcsb.org/"
+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')
+
+build() {
+ cmake -B build -S $pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+ install -Dm644 $pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}
More information about the arch-commits
mailing list