summaryrefslogtreecommitdiff
path: root/pcr/rtmidi
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-01-22 17:15:50 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-01-22 17:16:04 -0300
commited7a82cec72aa998efc43c54a44541ebb79cb7a2 (patch)
tree510eacd6b0ff5b18b3b6a637e26042a45e96d790 /pcr/rtmidi
parent45a20c5e8092f7b3c85ef74db6417b809845c390 (diff)
rtmidi: add new package to [pcr]
Diffstat (limited to 'pcr/rtmidi')
-rw-r--r--pcr/rtmidi/PKGBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/pcr/rtmidi/PKGBUILD b/pcr/rtmidi/PKGBUILD
new file mode 100644
index 000000000..a61afa20a
--- /dev/null
+++ b/pcr/rtmidi/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer (Arch): Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
+# Contributor (Arch): rtfreedman <rob dot til dot freedman at gmail dot com>
+# Contributor (Arch): speps <speps at aur dot archlinux dot org>
+
+pkgname=rtmidi
+pkgver=2.1.0
+pkgrel=3
+pkgdesc="A set of C++ classes that provides a common API for realtime MIDI input/output."
+arch=('i686' 'x86_64')
+url="http://www.music.mcgill.ca/~gary/rtmidi/"
+license=('MIT')
+depends=('alsa-lib' 'jack')
+source=("${url}release/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('3bb58a7bcdbd0a6c716060d57eb856f4557a460fd24a533e956ee93523aafe058a4b3cf3133fe1f21d517b1bc7519822f3466a88e3b2c3042a8b09d171143877')
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ ./configure --prefix=/usr --with-alsa --with-jack
+ make
+ cd tests && make
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+
+ # Install library files.
+ install -Dm755 librtmidi.so.${pkgver} "${pkgdir}/usr/lib/librtmidi.so.${pkgver}"
+ ln -s librtmidi.so.${pkgver} "${pkgdir}/usr/lib/librtmidi.so.2"
+ ln -s librtmidi.so.${pkgver} "${pkgdir}/usr/lib/librtmidi.so"
+
+ # Install header file.
+ install -Dm644 RtMidi.h "${pkgdir}/usr/include/RtMidi.h"
+
+ # Install RtMIDI configuration utility.
+ install -Dm644 librtmidi.pc "${pkgdir}/usr/lib/pkgconfig/librtmidi.pc"
+ install -Dm755 rtmidi-config "${pkgdir}/usr/bin/rtmidi-config"
+
+ # Install test utilities with prefix 'rtmidi-'
+ for _bin in `find tests -type f -perm 755`; do
+ install -Dm755 $_bin "${pkgdir}/usr/bin/${pkgname}-"`basename $_bin`
+ done
+
+ # Text documentation.
+ install -d "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm644 readme 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 "%LEGAL AND%"
+ install -Dm644 xx00 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}