summaryrefslogtreecommitdiff
path: root/pcr/rtmidi/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-01-21 13:30:55 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-01-21 13:30:55 +0100
commitf7a7c5579fdf7bca0905162c3ef664857814b410 (patch)
treefbdc91e6b33fe89ecf969019d0a998133fa2b553 /pcr/rtmidi/PKGBUILD
parente6dd974eea36bfe2487e307d1e80c8f73d09e039 (diff)
downloadabslibre-f7a7c5579fdf7bca0905162c3ef664857814b410.tar.gz
abslibre-f7a7c5579fdf7bca0905162c3ef664857814b410.tar.bz2
abslibre-f7a7c5579fdf7bca0905162c3ef664857814b410.zip
pcr/rtmidi: updated to 3.0.0
Diffstat (limited to 'pcr/rtmidi/PKGBUILD')
-rw-r--r--pcr/rtmidi/PKGBUILD52
1 files changed, 23 insertions, 29 deletions
diff --git a/pcr/rtmidi/PKGBUILD b/pcr/rtmidi/PKGBUILD
index a61afa20a..8607ddc57 100644
--- a/pcr/rtmidi/PKGBUILD
+++ b/pcr/rtmidi/PKGBUILD
@@ -1,48 +1,42 @@
-# 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>
+# Maintainer (AUR): Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
+# Contributor (AUR): rtfreedman <rob dot til dot freedman at gmail dot com>
+# Contributor (AUR): speps <speps at aur dot archlinux dot org>
+
+# parabola changes and rationale:
+# no changes.
pkgname=rtmidi
-pkgver=2.1.0
-pkgrel=3
+pkgver=3.0.0
+pkgrel=1
pkgdesc="A set of C++ classes that provides a common API for realtime MIDI input/output."
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'armv7h')
url="http://www.music.mcgill.ca/~gary/rtmidi/"
license=('MIT')
-depends=('alsa-lib' 'jack')
-source=("${url}release/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('3bb58a7bcdbd0a6c716060d57eb856f4557a460fd24a533e956ee93523aafe058a4b3cf3133fe1f21d517b1bc7519822f3466a88e3b2c3042a8b09d171143877')
+depends=('jack')
+source=("${url}release/${pkgname}-${pkgver}.tar.gz"
+ '0001-fix-tests-with-prefix.diff')
+sha512sums=('b5cba769e4641ac453493e2e6ca6f947d7ef5fe71870dd10aa19c93ad18dd62ed01358c468c0e1e326dbc29bd00ecc32b9d8895276d9f46e9e0aa20ed6e0b70f'
+ 'b45156fd1fca578a0952f3819ffe5721b57e8e8237ba3b532bad0349e201bcfc75460d4d393b3233dacbc994be71186e72f2ae475ac97053ef51716e9f7ba99a')
+
+prepare() {
+ # Link the tests against build output and not the system library when using --prefix.
+ # [https://github.com/thestk/rtmidi/pull/127]
+ patch -Np1 -i 0001-fix-tests-with-prefix.diff
+}
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
+ make DESTDIR="${pkgdir}" install
# Text documentation.
install -d "${pkgdir}/usr/share/doc/${pkgname}"
- install -Dm644 readme doc/release.txt "${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}
@@ -50,6 +44,6 @@ package() {
install -Dm644 doc/images/* "${pkgdir}/usr/share/doc/${pkgname}/images"
# License.
- csplit -s readme "%LEGAL AND%"
+ csplit -s README.md "%Legal and%"
install -Dm644 xx00 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}