[arch-commits] Commit in mmtf-cpp/repos (community-any community-any/PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Mon Mar 1 08:37:11 UTC 2021
Date: Monday, March 1, 2021 @ 08:37:11
Author: arojas
Revision: 876322
archrelease: copy trunk to community-any
Added:
mmtf-cpp/repos/community-any/
mmtf-cpp/repos/community-any/PKGBUILD
(from rev 876321, mmtf-cpp/trunk/PKGBUILD)
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Copied: mmtf-cpp/repos/community-any/PKGBUILD (from rev 876321, mmtf-cpp/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2021-03-01 08:37:11 UTC (rev 876322)
@@ -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