[arch-commits] Commit in libmmtf/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 17:48:58 UTC 2020


    Date: Tuesday, July 7, 2020 @ 17:48:57
  Author: felixonmars
Revision: 659870

archrelease: copy trunk to community-staging-any

Added:
  libmmtf/repos/community-staging-any/
  libmmtf/repos/community-staging-any/PKGBUILD
    (from rev 659869, libmmtf/trunk/PKGBUILD)

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

Copied: libmmtf/repos/community-staging-any/PKGBUILD (from rev 659869, libmmtf/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-07-07 17:48:57 UTC (rev 659870)
@@ -0,0 +1,34 @@
+# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
+
+pkgname=libmmtf
+_pkgname=mmtf-cpp
+pkgver=1.0.0
+pkgrel=2
+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