summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03ec009df4782fb802f4efa6545102b347e47f2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Michał Przybyś <michal@przybys.eu>
pkgname=spek-wxgtk3
pkgver=0.8.4
pkgrel=2
pkgdesc='An acoustic spectrum analyser (compiled against wxGtk3 and ffmpeg4.4)'
arch=(x86_64)
url='http://spek.cc/'
license=(GPL3)
depends=(desktop-file-utils
        ffmpeg4.4
        wxwidgets-gtk3)
makedepends=(intltool)
conflicts=(spek)
provides=(spek)
source=("https://github.com/alexkay/spek/archive/v${pkgver}.tar.gz")
sha256sums=(1751246e958cff91fe30b01925a38bf8cbd9c6abbd0d24e5b21eaad3d054534b)

build() {
    cd "spek-${pkgver}"
    export PKG_CONFIG_PATH=/usr/lib/ffmpeg4.4/pkgconfig
    export CXXFLAGS="$(pkg-config --cflags-only-I libavutil)"
    ./autogen.sh --with-wx-config=/usr/bin/wx-config --prefix=/usr
    make
}

package() {
    cd "spek-${pkgver}"
    make DESTDIR="${pkgdir}" install
}