summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb22cec4fdc51bb787eb0d2ffdb84bdadff02774 (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
# Maintainer: Joshua Rubin <me at jawa dot dev>

pkgname=wdsp-git
_pkgname=wdsp
pkgver=r56.c55342c
pkgrel=1
pkgdesc='NR0V DSP library ported to linux'
arch=('x86_64')
url='https://github.com/g0orx/wdsp'
license=('GPL2')
depends=()
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+https://github.com/g0orx/${_pkgname}")
md5sums=('SKIP')
sha1sums=('SKIP')
sha256sums=('SKIP')
sha384sums=('SKIP')
sha512sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$_pkgname"
  make
}

package() {
  cd "$_pkgname"
  install -D wdsp.h -m 0644 "${pkgdir}/usr/include/wdsp.h"
  install -D libwdsp.so "${pkgdir}/usr/lib/libwdsp.so"
}