1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
8 pkgdesc="Cross platform library for interfacing with OS MIDI I/O APIs"
10 url="https://github.com/portmidi/portmidi"
22 source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
23 sha512sums=('d9f22d161e1dd9a4bde1971bb2b6e5352da51545f4fe5ecad11c55e7a535f0d88efce18d1c8fd91e93b70a7926150f86a0f53972ad92370e86556a8dd72dc194')
24 b2sums=('fd8b002880ccfcff9f233e2fa5021fe4cf9da2f91b3ceaa36fe70f96818e174578f9a14b69bdbb58fab777c9a9e4ff939b86814a403860c7ec264dddc6f26e85')
29 -D CMAKE_INSTALL_PREFIX=/usr
30 -D CMAKE_BUILD_TYPE=None
35 cmake "${cmake_options[@]}"
36 cmake --build build --verbose
40 ctest --test-dir build --output-on-failure
48 DESTDIR="$pkgdir" cmake --install build
49 install -vDm 644 $pkgname-$pkgver/license.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
50 install -vDm 644 $pkgname-$pkgver/{CHANGELOG,README}.txt -t "$pkgdir/usr/share/doc/$pkgname/"