archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / eq10q / repos / community-x86_64 / PKGBUILD
blob28b1001403ea0ea8d46197e6aec4b8abbd7f96fa
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=eq10q
4 pkgver=2.2
5 pkgrel=5
6 pkgdesc="Audio plugin bundle over the LV2 standard for Linux"
7 arch=(x86_64)
8 url="http://eq10q.sourceforge.net/"
9 license=(GPL3)
10 groups=(
11   lv2-plugins
12   pro-audio
14 depends=(
15   gcc-libs
16   glibc
17   gtkmm
19 makedepends=(
20   atkmm
21   cairomm
22   cmake
23   fftw
24   glibmm
25   lv2
26   libsigc++
27   pangomm
29 source=(
30   https://sourceforge.net/projects/$pkgname/files/$pkgname-$pkgver.tar.gz
31   $pkgname-2.2-replace_pow10.patch
32   $pkgname-2.2-lv2.patch
33   $pkgname-2.2-cmakelists.patch
35 sha512sums=('4c6a79e9f1faeb431abd4e94b6bfa153b1ff5f55b3c2734d35a865ba23e3a7786ee45ee122cdcc26c9a8de915f1c4e2ec588a4c219ad6daf0ccf4a2b474b1e24'
36             '40b3315597bfeccb5d34c5ff96ad300336f9da2e432d3278fbb371eb2cc33c0ac82a5b3d655f0a33e1868e993ffdb2b326891c37ed8ba8856d4ef52ef2a2f8f6'
37             '2e6ab8022413f28bd04f342c5d68608126f83c54fced1032863b11aaa809e4e931ba6257e71c48ffe18832acda33ba4091e83b159bad226ea0ac7e37bdee502d'
38             '62148cab1e0960740bc67acda7db8bcaf81ad12a4b2c283142d4cc93282e21d21195f103f3adadf956f95293e6324a279fae5b268d8f7bc70ff4eb477efe2994')
39 b2sums=('453cf8e0dcb330e92dfa6be65a83c63c05450956ea9dcef49206d83758c8ea0746cde7d26932e709116a44eb2ce30bb29fa5a4753f5597e71128767b462cb024'
40         'd2396bd6880611181fde97a2eb009c14fc055b5b3dbee146cad9000b5ad38029fb33f5d28b3213e74da48867cdd44cc8adebd07072c264f89565b023103d24a5'
41         'ccd78f5751cc48acd63bcafd5cb714f6f4742a6725fc428485b69271585fc39edbaa60726528c10dfa5491a1b67541003adeda38e497b94995acd6cd4ffa376d'
42         '87d79c291e2da46626344bf8b7bebfb1eb9c8200b9818314db4d0fc732f17285338c9661bb3fb3a9c22963bff864f6ad51ee37e4d2cb816738056bf45805c755')
44 prepare() {
45   # replace use of deprecated pow10 with standardized exp10:
46   # https://sourceforge.net/p/eq10q/bugs/13/
47   patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-2.2-replace_pow10.patch
48   # fix for lv2 >= 1.18:
49   # https://sourceforge.net/p/eq10q/bugs/23/
50   patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-2.2-lv2.patch
51   # fix install location:
52   # https://sourceforge.net/p/eq10q/bugs/20/
53   patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-2.2-cmakelists.patch
56 build() {
57   local cmake_options=(
58     -B build
59     -D CMAKE_BUILD_TYPE=None
60     -D CMAKE_INSTALL_PREFIX=/usr
61     -W no-dev
62     -S $pkgname-$pkgver
63   )
65   cmake "${cmake_options[@]}"
66   cmake --build build --verbose
69 check() {
70   ctest --test-dir build --output-on-failure
73 package() {
74   depends+=(
75     atkmm libatkmm-1.6.so
76     cairomm libcairomm-1.0.so
77     fftw libfftw3.so
78     glibmm libglibmm-2.4.so
79     libsigc++ libsigc-2.0.so
80     pangomm libpangomm-1.4.so
81   )
83   DESTDIR="$pkgdir" cmake --install build
84   install -vDm 644 $pkgname-$pkgver/README -t "$pkgdir/usr/share/doc/$pkgname/"