[arch-commits] Commit in libomemo/repos/community-x86_64 (PKGBUILD PKGBUILD)

Frederik Schwan freswa at gemini.archlinux.org
Sun Apr 10 15:41:04 UTC 2022


    Date: Sunday, April 10, 2022 @ 15:41:03
  Author: freswa
Revision: 1185740

archrelease: copy trunk to community-x86_64

Added:
  libomemo/repos/community-x86_64/PKGBUILD
    (from rev 1185739, libomemo/trunk/PKGBUILD)
Deleted:
  libomemo/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   59 ++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 32 insertions(+), 27 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-10 15:41:01 UTC (rev 1185739)
+++ PKGBUILD	2022-04-10 15:41:03 UTC (rev 1185740)
@@ -1,27 +0,0 @@
-# Maintainer: Frederik Schwan <freswa at archlinux dot org>
-
-pkgname=libomemo
-pkgver=0.8.0
-pkgrel=1
-pkgdesc='Implementation of OMEMO (XEP-0384) in C'
-arch=('x86_64')
-url='https://github.com/gkdr/libomemo'
-license=('MIT')
-depends=('sqlite' 'libgcrypt' 'mxml' 'glib2')
-provides=('libomemo.so')
-source=("https://github.com/gkdr/libomemo/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
-b2sums=('9b13aaaa21f16425fcecf963e187c5b686986e6bb01255c78042ea64e48d2c75a06729d1ad6e6b26d62d191e7d99305b7a8f1e07078221c6d14a12f587bf0743')
-
-build() {
-  cd ${pkgname}-${pkgver}
-  make PREFIX="/usr"
-}
-
-package() {
-  cd ${pkgname}-${pkgver}
-  make DESTDIR="${pkgdir}" PREFIX="/usr" install
-  chmod a+x "${pkgdir}"/usr/lib/libomemo.so.${pkgver}
-  ln -sf libomemo.so.${pkgver} "${pkgdir}"/usr/lib/libomemo.so
-  ln -sf libomemo.so.${pkgver} "${pkgdir}"/usr/lib/libomemo.so.${pkgver%%.*}
-  install -Dm644 -t "${pkgdir}"/usr/share/licenses/${pkgname} LICENSE
-}

Copied: libomemo/repos/community-x86_64/PKGBUILD (from rev 1185739, libomemo/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-10 15:41:03 UTC (rev 1185740)
@@ -0,0 +1,32 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+
+pkgname=libomemo
+pkgver=0.8.1
+pkgrel=1
+pkgdesc='Implementation of OMEMO (XEP-0384) in C'
+arch=('x86_64')
+url='https://github.com/gkdr/libomemo'
+license=('MIT')
+depends=('sqlite' 'libgcrypt' 'mxml' 'glib2')
+makedepends=('cmake' 'cmocka')
+provides=('libomemo.so')
+source=("https://github.com/gkdr/libomemo/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+b2sums=('b75ad298946dff680705ba0927293ea30cb8bf616a417c6584cef9f84e0894c5581462782a4b1003bf9e530695eea10bba9f37ae94e957a0008a35c862f17f62')
+
+build() {
+  cmake -B build -S ${pkgname}-${pkgver} -DCMAKE_INSTALL_PREFIX='/usr'
+  cmake --build build
+}
+
+check() {
+  cd build
+  ctest --output-on-failure
+}
+
+package() {
+  DESTDIR="${pkgdir}" cmake --install build
+  chmod a+x "${pkgdir}"/usr/lib/libomemo.so.${pkgver}
+  ln -sf libomemo.so.${pkgver} "${pkgdir}"/usr/lib/libomemo.so
+  ln -sf libomemo.so.${pkgver} "${pkgdir}"/usr/lib/libomemo.so.${pkgver%%.*}
+  install -Dm644 -t "${pkgdir}"/usr/share/licenses/${pkgname} ${pkgname}-${pkgver}/LICENSE
+}



More information about the arch-commits mailing list