From ed7a82cec72aa998efc43c54a44541ebb79cb7a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Fri, 22 Jan 2016 17:15:50 -0300 Subject: rtmidi: add new package to [pcr] --- pcr/rtmidi/PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 pcr/rtmidi/PKGBUILD (limited to 'pcr/rtmidi') 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 +# Contributor (Arch): rtfreedman +# Contributor (Arch): speps + +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" +} -- cgit v1.2.3-2-g168b