archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / adljack / trunk / PKGBUILD
blob590c49f3f5ea221105f0acb57a245929a9055b0b
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=adljack
4 pkgver=1.2.0
5 pkgrel=4
6 pkgdesc="A standalone synthesizer for ADLMIDI and OPNMIDI on the text console"
7 arch=(x86_64)
8 url="https://github.com/jpcima/adljack"
9 license=(Boost)
10 groups=(pro-audio)
11 depends=(
12   bash
13   gcc-libs
14   glibc
16 makedepends=(
17   cmake
18   jack
19   liblo
20   ncurses
21   rtaudio
22   rtmidi
24 source=(
25   $url/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz
26   $pkgname-1.2.0-devendor-rtaudio-rtmidi.patch
27   $pkgname-1.2.0-include_string.patch::https://github.com/jpcima/adljack/commit/be5456eb5212b98dda8e45e9c2087b5f475aa518.patch
29 sha512sums=('2b579fbb3b47c814bc33b68c749b3335c39feee88115cfe41eb9261775d4b296eebf09905adab8cbba1879af13eff3d0f6af390a29b13c6485eca113851012ae'
30             '59991d9e55dab988668c644f856fb37bbb01d551ef9c8fe6bd51d414c0c1c1fadef0602409c37cd6f97cbb3fff4ea8cb74e6456cbde42f4e88e0fd46c9fd03bf'
31             '7fa19aaed161623c8bb1f488b9d999026641f73a55a3da47c8387c36698f81b90b3b4be116bdba35d4119df4222965c193e843b1665b9f4c1a80323ed869dba9')
32 b2sums=('143a17f8b0ce96227962201adaac4bde1e5bced8fca2370bcb6486a58e4a04cac27fddf3b2e5a2f60f992bfae1ad28445b80fc72ea3398bb849e23dfe34f28e2'
33         '1ffc1b5545de087ff3432abb92bf6b66f181b177ba84254bb85472df34705033cc20ab0b01f9f37445bf47c70fe57e416460655b23f1aeca675a70febcfab866'
34         '6035202f55f4d2b89fcff0e8bba8e40354a28c572b24a938ac92ffb9a081a15888354b5c47c48d5f73619c9daaab6ab7b266e03e973bdf0f8d9fc93625245b2f')
36 prepare() {
37   patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-1.2.0-devendor-rtaudio-rtmidi.patch
38   patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-1.2.0-include_string.patch
41 build() {
42   local cmake_options=(
43     -B build
44     -DCMAKE_INSTALL_PREFIX=/usr
45     -DCMAKE_BUILD_TYPE=None
46     -S $pkgname-$pkgver
47     -W no-dev
48   )
50   cmake "${cmake_options[@]}"
51   cmake --build build --verbose
54 check() {
55   ctest --test-dir build --output-on-failure
58 package() {
59   depends+=(
60     jack libjack.so
61     liblo liblo.so
62     ncurses libncursesw.so
63     rtaudio librtaudio.so
64     rtmidi librtmidi.so
65   )
67   DESTDIR="$pkgdir" cmake --install build