mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
38 lines
992 B
Bash
38 lines
992 B
Bash
|
# Maintainer: Filipe Laíns (FFY00) <filipe.lains@gmail.com>
|
||
|
# Contributor: Michal Krenek (Mikos) <m.krenek@gmail.com>
|
||
|
|
||
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||
|
# - only move lib64 on aarch64
|
||
|
|
||
|
pkgname=serialdv
|
||
|
pkgver=1.1.1
|
||
|
pkgrel=2
|
||
|
pkgdesc="C++ interface to encode/decode audio with AMBE3000 based devices in packet mode"
|
||
|
arch=('x86_64')
|
||
|
url="https://github.com/f4exb/serialDV"
|
||
|
license=('GPL3')
|
||
|
makedepends=('cmake')
|
||
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
|
||
|
sha512sums=('7154d20efc45dc8f285fdff5933538362b30185ecce57fe1107a1dcb34216873160e89d1f2f892816acb32adf9371ea09ccd6a480912197e9fd67502ea6746eb')
|
||
|
|
||
|
build() {
|
||
|
mkdir -p "$srcdir"/serialDV-$pkgver/build
|
||
|
cd "$srcdir"/serialDV-$pkgver/build
|
||
|
|
||
|
cmake .. \
|
||
|
-DCMAKE_BUILD_TYPE=Release \
|
||
|
-DCMAKE_INSTALL_PREFIX=/usr
|
||
|
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$srcdir"/serialDV-$pkgver/build
|
||
|
|
||
|
make DESTDIR="$pkgdir" install
|
||
|
|
||
|
if [[ $CARCH == "aarch64" ]]; then
|
||
|
mv "$pkgdir"/usr/lib64 "$pkgdir"/usr/lib
|
||
|
fi
|
||
|
}
|