archrelease: copy trunk to community-any
[ArchLinux/community.git] / artyfx / trunk / PKGBUILD
blob5893e9cd5d92304aef6b0e62a020f59a42a89f3b
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=artyfx
4 pkgver=1.3.1
5 pkgrel=2
6 pkgdesc="A plugin bundle of artistic real-time audio effects"
7 arch=(x86_64)
8 url="http://openavproductions.com/artyfx/"
9 license=(GPL2)
10 groups=(
11   lv2-plugins
12   pro-audio
14 depends=(
15   cairo
16   gcc-libs
17   glibc
18   libx11
19   lv2-host
21 makedepends=(
22   cmake
23   libsndfile
24   lv2
26 source=(https://github.com/openAVproductions/openAV-$pkgname/archive/release-$pkgver/$pkgname-release-$pkgver.tar.gz)
27 sha512sums=('7fe84783f460e5ac62d715990a7140259b8e2f1e0a531cf6cde63dadfb51e934abd17c81a8c280699279c0af2aa74ee05e073d32539d99fa37d83a0b1cfc0c49')
28 b2sums=('cd858f64743529084130b5b4d8851ddddd8d69d8aada3a63e0634a41057390e858e5c5d7591fc45cea2c46644a6a3bd086d3ce5cac73bc61e94cd28f7046cc06')
30 build() {
31   local cmake_options=(
32     -B build
33     -D CMAKE_BUILD_TYPE=None
34     -D CMAKE_INSTALL_PREFIX=/usr
35     -D BUILD_GUI=ON
36     -D BUILD_SSE=ON
37     -S openAV-ArtyFX-release-$pkgver
38     -W no-dev
39   )
41   cmake "${cmake_options[@]}"
42   cmake --build build --verbose
45 check() {
46   ctest --test-dir build --output-on-failure
49 package() {
50   depends+=(
51     libsndfile libsndfile.so
52   )
54   DESTDIR="$pkgdir" cmake --install build
55   install -vDm 644 openAV-ArtyFX-release-$pkgver/{CHANGELOG,README.md} -t "$pkgdir/usr/share/doc/$pkgname"