archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libldac / trunk / PKGBUILD
blob48a6067eb8ec01f6a4b85f9c8e25b564a7b0cf45
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgname=libldac
4 pkgver=2.0.2.3
5 pkgrel=1
6 pkgdesc="LDAC Bluetooth encoder library"
7 url="https://github.com/EHfive/ldacBT"
8 arch=(x86_64)
9 license=(Apache)
10 depends=(glibc)
11 makedepends=(git cmake)
12 provides=(libldacBT_{abr,enc}.so)
13 _commit=fbffba45d15d959da6ee04eafe14c0d4721f6030  # tags/v2.0.2.3
14 source=("git+$url#commit=$_commit"
15         "git+https://gitlab.com/eh5/libldac.git")
16 sha256sums=('SKIP'
17             'SKIP')
19 pkgver() {
20   cd ldacBT
21   git describe --tags | sed 's/^v//;s/-/+/g'
24 prepare() {
25   cd ldacBT
27   git submodule init
28   git submodule set-url libldac "$srcdir/libldac"
29   git submodule update
32 build() {
33   cmake -S ldacBT -B build \
34     -DCMAKE_INSTALL_PREFIX=/usr \
35     -DCMAKE_BUILD_TYPE=None \
36     -DLDAC_SOFT_FLOAT=OFF
37   cmake --build build
40 package() {
41   DESTDIR="$pkgdir" cmake --install build