summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 651259cc7aac01408998d348f9a37ceaefdbae5e (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
# Maintainer: rern <rernrern@gmail.com>

pkgname=audio_spectrum_oled
pkgver=0.02
pkgrel=1
pkgdesc='Audio spectrum OLED for Raspberry Pi'
url=https://github.com/rern/audio_spectrum_oled
arch=(armv6h armv7h aarch64)
license=(MIT)
depends=(alsa-lib fftw i2c-tools)
makedepends=(glibc)
source=(https://github.com/rern/audio_spectrum_oled/archive/refs/tags/$pkgver.tar.gz)
sha256sums=('7b420ff7d51d2c04860db06204e8f26346b7a8d95e6db57aeb023ab8bb0ec509')

build() {
	export CPPFLAGS="-W -Wall -Wno-psabi"
	export CFLAGS=""
	export CXXFLAGS=""
	export LDFLAGS=""
	export DEBUG_CFLAGS=""
	export DEBUG_CXXFLAGS=""
	cd $srcdir/$pkgname-$pkgver
	autoreconf -v -i -I m4 -W all
	./configure --prefix=/usr
	make
}

package() {
	cd $srcdir/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install-strip
}