blob: e9afdd1ccbd59753782e1152ae2059af93ae0036 (
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
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Vinicius Moura Longaray <vmouralongaray@gmail.com>
pkgname=spectrum-git
pkgver=r275.eea444e
pkgrel=1
pkgdesc="Console-based music player with equalizer written in C++."
arch=("any")
url="https://github.com/v1nns/spectrum"
license=("MIT")
depends=("alsa-lib" "ffmpeg" "fftw" "curl" "libxml++")
makedepends=("git" "cmake" "ninja")
provides=("spectrum")
conflicts=("spectrum")
source=("spectrum::git+https://github.com/v1nns/spectrum")
md5sums=("SKIP")
pkgver() {
cd "$srcdir/spectrum"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/spectrum"
mkdir -p build && cd build
CXXFLAGS="$CFLAGS" cmake \
-DENABLE_INSTALL=ON \
-DSPECTRUM_DEBUG=OFF \
-DENABLE_TESTS=OFF \
-DENABLE_COVERAGE=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-G Ninja \
..
cmake --build .
}
package() {
cd "$srcdir/spectrum"
cd build
DESTDIR="$pkgdir/" cmake --install .
}
|