mirror of
https://github.com/archlinux/aur.git
synced 2026-01-27 20:28:31 +01:00
bmdtools-git: new package
This commit is contained in:
commit
272008f245
3 changed files with 62 additions and 0 deletions
14
.SRCINFO
Normal file
14
.SRCINFO
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
pkgbase = bmdtools-git
|
||||
pkgdesc = Basic capture and play programs for Blackmagic Design Decklink
|
||||
pkgver = 20121010
|
||||
pkgrel = 1
|
||||
url = https://github.com/lu-zero/bmdtools
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = custom
|
||||
makedepends = decklink-sdk
|
||||
makedepends = git
|
||||
depends = libav-git
|
||||
|
||||
pkgname = bmdtools-git
|
||||
|
||||
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
48
PKGBUILD
Normal file
48
PKGBUILD
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# Maintainer: Antoine Lubineau <antoine@lubignon.inf>
|
||||
|
||||
pkgname=bmdtools-git
|
||||
pkgver=20121010
|
||||
pkgrel=1
|
||||
pkgdesc="Basic capture and play programs for Blackmagic Design Decklink"
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://github.com/lu-zero/bmdtools"
|
||||
license=('custom')
|
||||
depends=('libav-git')
|
||||
makedepends=('decklink-sdk' 'git')
|
||||
|
||||
_gitroot='git://github.com/lu-zero/bmdtools.git'
|
||||
_gitname='bmdtools'
|
||||
|
||||
build() {
|
||||
cd "$srcdir"
|
||||
msg "Connecting to GIT server...."
|
||||
|
||||
if [[ -d "$_gitname" ]]; then
|
||||
cd "$_gitname" && git pull origin
|
||||
msg "The local files are updated."
|
||||
else
|
||||
git clone "$_gitroot" "$_gitname"
|
||||
fi
|
||||
|
||||
msg "GIT checkout done or server timeout"
|
||||
msg "Starting build..."
|
||||
|
||||
rm -rf "$srcdir/$_gitname-build"
|
||||
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
|
||||
cd "$srcdir/$_gitname-build"
|
||||
|
||||
sed -i 's|SDK_PATH=../../include|SDK_PATH=/usr/src/decklink-sdk|' Makefile
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_gitname-build"
|
||||
|
||||
install -D bmdcapture "$pkgdir/usr/bin/bmdcapture"
|
||||
install -D bmdplay "$pkgdir/usr/bin/bmdplay"
|
||||
install -D bmdgenlock "$pkgdir/usr/bin/bmdgenlock"
|
||||
|
||||
install -D -m 0644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
Loading…
Add table
Reference in a new issue