[arch-commits] Commit in rtmidi/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Thu Nov 18 22:37:26 UTC 2021
Date: Thursday, November 18, 2021 @ 22:37:25
Author: dvzrv
Revision: 1052683
upgpkg: rtmidi 5.0.0-1: Upgrade to 5.0.0.
Split out documentation to rtmidi-docs.
Simplify quoting in file.
Prevent excessive overlinking due to libtool.
Modified:
rtmidi/trunk/PKGBUILD
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++--------------------------
1 file changed, 28 insertions(+), 26 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-18 22:36:52 UTC (rev 1052682)
+++ PKGBUILD 2021-11-18 22:37:25 UTC (rev 1052683)
@@ -3,25 +3,22 @@
# Contributor: rtfreedman <rob dot til dot freedman at gmail dot com>
# Contributor: speps <speps at aur dot archlinux dot org>
-pkgname=rtmidi
-pkgver=4.0.0
-pkgrel=2
+pkgbase=rtmidi
+pkgname=(rtmidi rtmidi-docs)
+pkgver=5.0.0
+pkgrel=1
pkgdesc="A set of C++ classes that provides a common API for realtime MIDI input/output."
-arch=('x86_64')
+arch=(x86_64)
url="https://www.music.mcgill.ca/~gary/rtmidi/"
-license=('custom:RtMidi')
-depends=('alsa-lib' 'gcc-libs' 'glibc' 'libjack.so')
-makedepends=('doxygen')
-provides=('librtmidi.so')
+license=(custom:RtMidi)
+makedepends=(alsa-lib doxygen gcc-libs glibc jack)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/thestk/${pkgname}/archive/${pkgver}.tar.gz")
-sha512sums=('39383f121320c9471b31f8b9d283167bfadf4c7328b6664d1d54a4c52e3dd9b76362875258d90363c6044e87fcee31ccce80e19435dc620c88e6d60fc82d0f9d')
+sha512sums=('f154905af9a8a85bf543f88035e8744970afe703ea3b4b2f21d85e246cf841fc86b47fd402a81bef27d4233c0d8ccf51943dc2fa42dfdd5447e1f5c3d6634297')
+b2sums=('74a4dac921abf1d6bc102bfd6e4edd3b9dd7fead045ded15c8793168348e330e896af5d87ae4dfa8128baf4de99660a89e191e29b2135d2a446e3fcddb37f53f')
prepare() {
cd "${pkgname}-${pkgver}"
- # license in README.md:
- # https://github.com/thestk/rtmidi/issues/198
- tail -n 25 README.md | sed 's/^\ \ \ \ //g' > LICENSE
- autoreconf -vfi
+ autoreconf -fiv
}
build() {
@@ -29,20 +26,25 @@
./configure --prefix=/usr \
--with-alsa \
--with-jack
+ # prevent overlinking due to libtool
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
-package() {
- cd "${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
- # docs
- install -vDm 644 {README.md,doc/release.txt} \
- -t "${pkgdir}/usr/share/doc/${pkgname}"
- # html
- install -vDm 644 doc/html/* \
- -t "${pkgdir}/usr/share/doc/${pkgname}/html"
- install -vDm 644 doc/images/* \
- -t "${pkgdir}/usr/share/doc/${pkgname}/images"
- # license
- install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+package_rtmidi() {
+ depends=(alsa-lib gcc-libs glibc jack)
+ optdepends=('rtmidi-docs: for documentation')
+ provides=(librtmidi.so)
+
+ make DESTDIR="${pkgdir}" install -C "${pkgbase}-${pkgver}"
+ install -vDm 644 "${pkgbase}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
+
+package_rtmidi-docs() {
+ pkgdesc+=" (documentation)"
+
+ install -vDm 644 "${pkgbase}-${pkgver}/"{README.md,doc/release.txt} -t "${pkgdir}/usr/share/doc/${pkgbase}"
+ install -vDm 644 "${pkgbase}-${pkgver}/doc/html/"* -t "${pkgdir}/usr/share/doc/${pkgbase}/html"
+ install -vDm 644 "${pkgbase}-${pkgver}/doc/images/"* -t "${pkgdir}/usr/share/doc/${pkgbase}/images"
+ install -vDm 644 "${pkgbase}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
More information about the arch-commits
mailing list