[arch-commits] Commit in libmysofa/repos (community-x86_64 community-x86_64/PKGBUILD)
Daniel Bermond
dbermond at archlinux.org
Thu Oct 3 11:45:34 UTC 2019
Date: Thursday, October 3, 2019 @ 11:45:33
Author: dbermond
Revision: 512488
archrelease: copy trunk to community-x86_64
Added:
libmysofa/repos/community-x86_64/
libmysofa/repos/community-x86_64/PKGBUILD
(from rev 512487, libmysofa/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: libmysofa/repos/community-x86_64/PKGBUILD (from rev 512487, libmysofa/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2019-10-03 11:45:33 UTC (rev 512488)
@@ -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