blob: 381842c9785cb190986fbe51384da62c98dae25b (
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
|
# Maintainer: envolution
# Contributor: jasch <jasch dot io at protonmail dot com>
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=liquid-dsp-quiet-devel-git
pkgver=1.2.0+r6217+g4951bbbf6
pkgrel=1
pkgdesc="libliquid compatible with libquiet"
arch=('x86_64')
url="https://github.com/quiet/quiet-dsp"
license=('MIT')
depends=('fftw')
makedepends=('git' 'autoconf' 'automake' 'gcc' 'make')
optdepends=('libfec-git: forward error correction support')
provides=('liquid-dsp')
conflicts=('liquid-dsp')
options=('staticlibs')
source=("git+https://github.com/quiet/quiet-dsp.git#branch=devel")
sha256sums=('SKIP')
prepare() {
cd quiet-dsp
git checkout devel
}
pkgver() {
cd quiet-dsp
_version=$(git tag --sort=-v:refname --list | head -n1 | cut -c2-)
_commits=$(git rev-list --count HEAD)
_short_commit_hash=$(git rev-parse --short=9 HEAD)
echo "${_version}+r${_commits}+g${_short_commit_hash}"
}
build() {
cd quiet-dsp
rm -f config.cache aclocal.m4
aclocal
autoconf
autoheader
./configure --prefix /usr
make
}
package() {
cd quiet-dsp
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et:
|