[arch-commits] Commit in (4 files)

Daniel Bermond dbermond at archlinux.org
Thu Oct 3 11:44:04 UTC 2019


    Date: Thursday, October 3, 2019 @ 11:44:03
  Author: dbermond
Revision: 512487

Initial commit of libmysofa

Added:
  libmysofa/
  libmysofa/repos/
  libmysofa/trunk/
  libmysofa/trunk/PKGBUILD

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

Added: libmysofa/trunk/PKGBUILD
===================================================================
--- libmysofa/trunk/PKGBUILD	                        (rev 0)
+++ libmysofa/trunk/PKGBUILD	2019-10-03 11:44:03 UTC (rev 512487)
@@ -0,0 +1,37 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+
+pkgname=libmysofa
+pkgver=0.8
+pkgrel=1
+pkgdesc='C library to read HRTFs if they are stored in the AES69-2015 SOFA format'
+arch=('x86_64')
+url='https://hoene.github.io/libmysofa/'
+license=('BSD')
+depends=('zlib')
+makedepends=('cmake' 'cunit')
+checkdepends=('nodejs')
+source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/hoene/libmysofa/archive/v${pkgver}.tar.gz")
+sha256sums=('0e0abb6ec6f5f09266325741d6ef218532187129f65d0bc6b21e155760dfb2ad')
+
+build() {
+    cd "${pkgname}-${pkgver}/build"
+    
+    cmake \
+        -DBUILD_TESTS:BOOL='ON' \
+        -DCMAKE_INSTALL_LIBDIR:PATH='lib' \
+        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
+        -Wno-dev \
+        ..
+        
+    make all
+}
+
+check() {
+    make -C "${pkgname}-${pkgver}/build" test
+}
+
+package() {
+    make -C "${pkgname}-${pkgver}/build" DESTDIR="$pkgdir" install
+    
+    install -D -m644 "${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list