summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f42a30d382538a91103f1a4af6d2488bb1ffa09 (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
42
43
44
45
46
47
# Maintainer: Vain <aurmaint1 on host: uninformativ dot de>
# Contributor: Army
_pkgname=rtspeccy
pkgname=$_pkgname-git
pkgver=23.07
pkgrel=1
pkgdesc="Real time spectrum analyzer (audio)"
arch=('i686' 'x86_64')
url="https://uninformativ.de/git/rtspeccy"
license=('GPL3')
depends=('glut' 'fftw' 'mesa')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=(git+https://uninformativ.de/git/rtspeccy.git)
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --always | sed 's|-|.|g; s|v||'
}

prepare() {
  cd "$srcdir/$_pkgname"

  # custom config
  echo "$SRCDEST"
  if [ -e "$SRCDEST"/config.h ]
  then
    msg "Using custom config.h"
    cp "$SRCDEST"/config.h .
  else
    cp config.h.example config.h
  fi
}

build() {
  cd "$srcdir/$_pkgname"
  make
}

package() {
  cd "$srcdir/$_pkgname"
  make DESTDIR="$pkgdir" prefix="/usr" install
}

# vim:set ts=2 sw=2 et: