summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2226cc8e6f64e551f65d3be9abad5e1d6d9db5ed (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
# Maintainer: Mees Luten <mees [dot] luten [at] gmail [dot] com>
pkgname=libdsp-git
pkgver=r24.783dc00
pkgrel=1
pkgdesc="DSP functions without GR overhead"
arch=('x86_64')
url="https://github.com/altillimity/libdsp"
license=('GPLv3')
depends=()
makedepends=()
provides=()
conflicts=()
replaces=()
source=("$pkgname"::'git+https://github.com/altillimity/libdsp.git')
sha256sums=("SKIP")

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

prepare() {
	mkdir -p "$pkgname"/build
}

build() {
	cd "$pkgname"/build
	cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${pkgdir}"/usr/local ..
}

package() {
	cd "$pkgname"/build
	make install 
}