[arch-commits] Commit in (libmmtf libmmtf/repos libmmtf/trunk libmmtf/trunk/PKGBUILD)

Evgeniy Alekseev arcanis at archlinux.org
Wed Mar 20 12:22:24 UTC 2019


    Date: Wednesday, March 20, 2019 @ 12:22:23
  Author: arcanis
Revision: 442945

new package libmmtf as dependency of pymol

Added:
  libmmtf/
  libmmtf/repos/
  libmmtf/trunk/
  libmmtf/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Added: libmmtf/trunk/PKGBUILD
===================================================================
--- libmmtf/trunk/PKGBUILD	                        (rev 0)
+++ libmmtf/trunk/PKGBUILD	2019-03-20 12:22:23 UTC (rev 442945)
@@ -0,0 +1,34 @@
+# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
+
+pkgname=libmmtf
+_pkgname=mmtf-cpp
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="A binary encoding of biological structures library"
+arch=('any')
+url="https://github.com/rcsb/mmtf-cpp"
+license=('MIT')
+makedepends=('cmake')
+depends=()
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/rcsb/mmtf-cpp/archive/v${pkgver}.tar.gz")
+sha512sums=('0e502ae76e31689d440bff2fbc90fdab7ff62d5369e26f7ab2836966a30bda72625d6d5da33bc0770cf471a1549a02f7478ea16a01dd6be2809568d8daecb073')
+
+prepare() {
+  rm -rf build
+  mkdir build
+}
+
+build() {
+  cd build
+  cmake "../${_pkgname}-${pkgver}" \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="${pkgdir}" install
+  install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+


More information about the arch-commits mailing list