summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 31c0d0edb819987a0dfbbacb4157f5008543bc66 (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
# Maintainer: Vadim Yanitskiy <fixeria@osmocom.org>
# Contributor: Antoni Przybylik <antoni.przybylik@wp.pl>
# Contributor: Yuval Adam <yuval at y3xz dot com>

pkgname=libosmo-dsp-git
pkgver=0.4.0.r10.gdce124d
pkgrel=1
pkgdesc="Osmocom library with SDR DSP primitives"
arch=('x86_64')
url="https://osmocom.org/projects/libosmo-dsp"
license=('GPL-2.0-or-later')
conflicts=("${pkgname%-git}")
provides=('libosmodsp.so=0-64')
depends=('fftw')
makedepends=('git')
source=("git+https://gitea.osmocom.org/sdr/${pkgname%-git}.git")
sha256sums=('SKIP')

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

build() {
	cd "$srcdir/${pkgname%-git}"
	autoreconf -i
	./configure --prefix=/usr
	make
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR=$pkgdir install
}