blob: 11f1b58abc38f0db03bcb135e6dcaca237a69090 (
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
|
# Maintainer: SteamedFish <steamedfish@hotmail.com>
pkgname=codecserver-softmbe-git
pkgver=r6.66397fc
pkgrel=1
pkgdesc="Software MBE decoder for codecserver / digiham / openwebrx"
arch=(x86_64 aarch64)
url="https://github.com/knatterfunker/codecserver-softmbe"
license=('GPL3')
provides=('codecserver-softmbe')
conflicts=('codecserver-softmbe')
depends=('glibc' 'gcc-libs' 'mbelib' 'protobuf' 'codecserver')
makedepends=('git' 'cmake' 'patch')
source=(
"$pkgname"::git+https://github.com/knatterfunker/codecserver-softmbe.git
change_cppversion.patch
)
sha256sums=('SKIP' 'ef5fe46aa0a4882d1dcc51e1f265318298386ab76e4e2c6543ec5261c754e1be')
pkgver() {
cd "$srcdir/$pkgname"
# use git tag or fall back to number of revisions
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd "$srcdir/$pkgname"
patch -p1 < "$srcdir/change_cppversion.patch"
}
build() {
cmake -B build -S "$srcdir/$pkgname" -DCMAKE_INSTALL_LIBDIR=/usr/lib
make -C build
}
package() {
make -C build DESTDIR="$pkgdir/" install
}
|