summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b2572ac78ae964df038c7cc84eaf767d3e7ba53 (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: Adrian Rossiter <adrian@antiprism.com>

pkgname=mpd_oled
pkgver=0.01
pkgrel=1
pkgdesc='OLED Spectrum Display for Raspberry Pi'
url=https://github.com/antiprism/mpd_oled
arch=(armv6h armv7h aarch64)
license=(MIT)
depends=(alsa-lib fftw i2c-tools)
makedepends=(glibc)
source=(https://github.com/antiprism/mpd_oled/archive/refs/tags/v$pkgver.tar.gz)
sha256sums=(SKIP)

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
}