archrelease: copy trunk to extra-x86_64
[arch-packages.git] / portmidi / trunk / PKGBUILD
blobf0b458e929356ac38a4f831ec641af98c5e52f14
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
4 pkgname=portmidi
5 pkgver=2.0.4
6 pkgrel=1
7 epoch=1
8 pkgdesc="Cross platform library for interfacing with OS MIDI I/O APIs"
9 arch=(x86_64)
10 url="https://github.com/portmidi/portmidi"
11 license=(MIT)
12 depends=(
13   glibc
15 makedepends=(
16   alsa-lib
17   cmake
19 provides=(
20   libportmidi.so
22 source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
23 sha512sums=('d9f22d161e1dd9a4bde1971bb2b6e5352da51545f4fe5ecad11c55e7a535f0d88efce18d1c8fd91e93b70a7926150f86a0f53972ad92370e86556a8dd72dc194')
24 b2sums=('fd8b002880ccfcff9f233e2fa5021fe4cf9da2f91b3ceaa36fe70f96818e174578f9a14b69bdbb58fab777c9a9e4ff939b86814a403860c7ec264dddc6f26e85')
26 build() {
27   local cmake_options=(
28     -B build
29     -D CMAKE_INSTALL_PREFIX=/usr
30     -D CMAKE_BUILD_TYPE=None
31     -S $pkgname-$pkgver
32     -W no-dev
33   )
35   cmake "${cmake_options[@]}"
36   cmake --build build --verbose
39 check() {
40   ctest --test-dir build --output-on-failure
43 package() {
44   depends+=(
45     alsa-lib libasound.so
46   )
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/"