[arch-commits] Commit in rtmidi/repos (3 files)
David Runge
dvzrv at archlinux.org
Thu Jan 25 17:02:44 UTC 2018
Date: Thursday, January 25, 2018 @ 17:02:43
Author: dvzrv
Revision: 286861
archrelease: copy trunk to community-testing-x86_64
Added:
rtmidi/repos/community-testing-x86_64/
rtmidi/repos/community-testing-x86_64/0001-fix-tests-with-prefix.diff
(from rev 286860, rtmidi/trunk/0001-fix-tests-with-prefix.diff)
rtmidi/repos/community-testing-x86_64/PKGBUILD
(from rev 286860, rtmidi/trunk/PKGBUILD)
---------------------------------+
0001-fix-tests-with-prefix.diff | 10 +++++++
PKGBUILD | 51 ++++++++++++++++++++++++++++++++++++++
2 files changed, 61 insertions(+)
Copied: rtmidi/repos/community-testing-x86_64/0001-fix-tests-with-prefix.diff (from rev 286860, rtmidi/trunk/0001-fix-tests-with-prefix.diff)
===================================================================
--- community-testing-x86_64/0001-fix-tests-with-prefix.diff (rev 0)
+++ community-testing-x86_64/0001-fix-tests-with-prefix.diff 2018-01-25 17:02:43 UTC (rev 286861)
@@ -0,0 +1,10 @@
+--- a/rtmidi-3.0.0/configure.ac 2017-08-31 17:10:07.000000000 -0700
++++ b/rtmidi-3.0.0/configure.ac 2017-09-28 19:19:37.515888982 -0700
+@@ -77,7 +77,6 @@
+ # Set paths if prefix is defined
+ if test "x$prefix" != "x" && test "x$prefix" != "xNONE"; then
+ LIBS="$LIBS -L$prefix/lib"
+- CPPFLAGS="$CPPFLAGS -I$prefix/include/rtmidi"
+ fi
+
+ # For -I and -D flags
Copied: rtmidi/repos/community-testing-x86_64/PKGBUILD (from rev 286860, rtmidi/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2018-01-25 17:02:43 UTC (rev 286861)
@@ -0,0 +1,51 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
+# Contributor: rtfreedman <rob dot til dot freedman at gmail dot com>
+# Contributor: speps <speps at aur dot archlinux dot org>
+
+pkgname=rtmidi
+pkgver=3.0.0
+pkgrel=2
+pkgdesc="A set of C++ classes that provides a common API for realtime MIDI input/output."
+arch=('x86_64')
+url="http://www.music.mcgill.ca/~gary/rtmidi/"
+license=('custom:MIT')
+depends=('jack')
+makedepends=('doxygen')
+source=("https://github.com/thestk/${pkgname}/archive/v${pkgver}.tar.gz"
+ '0001-fix-tests-with-prefix.diff')
+sha512sums=('8975a63e7be9102af70401cef48c702597b87efe2d8fa30a978fe280e26da1dfa90d6f30cfbd3df587462f0dd085d0f29e1c014e67d7fcd3a36960b6bcfb3e55'
+ 'cab71dd641eaa3c7fa3c83b81fb4517bcf455a6037e103c29edbc2d540feed1b4fc0e5e3f9ea5f03845c98c8246cbb9bd12d1cf1f16c4bcbb2c0e874bd66674a')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ # Link the tests against build output and not the system library when using --prefix.
+ # [https://github.com/thestk/rtmidi/pull/127]
+ patch -Np2 -i "${srcdir}/0001-fix-tests-with-prefix.diff"
+ autoreconf -fi
+}
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ ./configure --prefix=/usr --with-alsa --with-jack
+ make
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ # Text documentation.
+ install -d "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm644 README.md doc/release.txt "${pkgdir}/usr/share/doc/${pkgname}"
+
+ # HTML documentation.
+ install -d "${pkgdir}/usr/share/doc/${pkgname}/"{html,images}
+ install -Dm644 doc/html/* "${pkgdir}/usr/share/doc/${pkgname}/html"
+ install -Dm644 doc/images/* "${pkgdir}/usr/share/doc/${pkgname}/images"
+
+ # License.
+ csplit -s README.md "%Legal and%"
+ install -Dm644 xx00 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
More information about the arch-commits
mailing list