summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be95fccde7ade3bb04312d2f3c08340234743707 (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
48
49
50
# Maintainer: Malcolm Mallardi <mdmallardi at gmail dot com>

pkgname=iir1-git
_pkgname=iir1
pkgver=1.9.3.r23.gedb4270
pkgrel=1
pkgdesc="DSP IIR Realtime C++ filter library"
arch=('x86_64')
url="https://github.com/berndporr/iir1"
license=('MIT')
depends=('glibc')
makedepends=('cmake' 'gcc' 'gzip')
provides=("iir1")
conflicts=("iir1")
source=(
  "git+https://github.com/berndporr/${_pkgname}.git"
)
md5sums=(
  'SKIP'
)

prepare() {
  cd "${srcdir}/${_pkgname}"
  cmake . --install-prefix="/usr"
}

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

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

package() {

  # install all files
  cd "${srcdir}/${_pkgname}"
  DESTDIR="${pkgdir}" make install

  # manual and readme documents
  cd "${srcdir}/${_pkgname}/"
  mkdir -p "${pkgdir}/usr/share/doc/${_pkgname}"
  cp -r docs "${pkgdir}/usr/share/doc/${_pkgname}/manual"
  install -Dm 644 "${srcdir}/${_pkgname}/README.md" "$pkgdir/usr/share/doc/${_pkgname}/README.md"
  install -Dm 644 "${srcdir}/${_pkgname}/COPYING" "$pkgdir/usr/share/doc/${_pkgname}/COPYING"

  }