jobextra/libajantv2/PKGBUILD

51 lines
1.3 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libajantv2
_pkgver=16.2-bugfix5
pkgver=${_pkgver//-/_}
pkgrel=01
epoch=1
pkgdesc="AJA NTV2 Open Source Static Libs and Headers for building applications that only wish to statically link against"
arch=("i686" "x86_64" "aarch64")
url="https://github.com/aja-video/ntv2"
depends=()
makedepends=("cmake" "git")
#options=('!lto' 'debug') ## uncomment this line to have the debug pkg made
options=(!lto)
source=("ntv2::git+https://github.com/aja-video/ntv2.git#commit=0acbac70a0b5e6509cca78cfbf69974c73c10db9")
build() {
cd ntv2
mkdir -p build; cd build
cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DAJA_BUILD_OPENSOURCE=ON \
-DAJA_BUILD_APPS=OFF \
-DAJA_BUILD_SHARED=ON \
-DAJA_INSTALL_HEADERS=ON ..
make
}
package() {
cd ntv2
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd build
make install DESTDIR="$pkgdir"
}
#---- license gpg-key sha256sums ----
license=("MIT")
sha256sums=(SKIP)