Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Miscellany
Monday, May 7th, 2012 at 1:34:11am MDT 

  1. # Contributor: Mika Havela <mika.havela@gmail.com>
  2. # Maintainer:
  3. _flavor=${FLAVOR:-grsec}
  4. _realname=decklink-tools
  5. _name=$_realname-$_flavor
  6.  
  7. _kver=9.5
  8. _kpkgrel=0
  9.  
  10. # source the kernel version
  11. if [ -f ../linux-$_flavor/APKBUILD ]; then
  12.         . ../linux-$_flavor/APKBUILD
  13.         [ "$_kver" != "$pkgver" ] && die "$_name: Please update _kver to $pkgver"
  14.         [ "$_kpkgrel" != "$pkgrel" ] && die "$_name: Please update _kpkgrel to $pkgrel"
  15. fi
  16.  
  17. _kernelver=$_kver-r$_kpkgrel
  18. _abi_release=$_kver-${_flavor}
  19.  
  20. pkgname=$_name
  21. pkgver=$_kver
  22. _mypkgrel=0
  23. pkgrel=$(($_kpkgrel + $_mypkgrel))
  24. _dlid=3225412
  25. pkgdesc="Drivers for Blackmagic Design DeckLink, Intensity or Multibridge video editing cards"
  26. url="http://www.blackmagic-design.com/products/"
  27. arch="all"
  28. license="custom"
  29. depends="linux-${_flavor}" # linux-headers dkms kernel-headers gcc make glibc2.8 # Recommended: opengl
  30. depends_dev=""
  31. makedepends="$depends_dev linux-${_flavor}-dev"
  32. install=""
  33. subpackages=""
  34. source="http://www.blackmagic-design.com/media/${_dlid}/Blackmagic_Desktop_Video_Linux_${pkgver}.tar.gz"
  35.  
  36. _builddir="$srcdir"
  37.  
  38. prepare() {
  39.         local i
  40.         cd "$_builddir"
  41.         rm -rfv *.rpm *.deb
  42.         tar xvzf desktopvideo-${pkgver}-i386.tar.gz     
  43.         for i in $source; do
  44.                 case $i in
  45.                 *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
  46.                 esac
  47.         done
  48. }
  49.  
  50. build() {
  51.         cd "$_builddir"/desktopvideo-${pkgver}a9-i386/usr/src/desktopvideo-${pkgver}a9/
  52.         mkdir -p "$pkgdir/lib/modules/`uname -r`"
  53.         make KERNELDIR="$pkgdir"/lib/modules/`uname -r`
  54. }
  55.  
  56. package() {
  57.         cd "$_builddir"
  58. }
  59.  
  60. md5sums="5113f1a43c963e7e9b973cb3a38cf53a  Blackmagic_Desktop_Video_Linux_9.5.tar.gz"

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right
fantasy-obligation