blob: 8778296a09be84c7486ee90ffc6df143c770f134 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Contributor: Petteri Tolonen <petteri.tolonen@gmail.com>
pkgname=libcrystalhd-git
pkgver=`date +%Y%m%d`
pkgrel=1
pkgdesc="Broadcom Crystal HD library from git.wilsonet.com"
arch=('i686' 'x86_64')
url="http://git.wilsonet.com/crystalhd.git/"
license=('GPL2')
depends=('gcc-libs')
makedepends=('git' 'make')
conflicts=('libcrystalhd')
_gitroot='git://linuxtv.org/jarod/crystalhd.git'
_gitname='crystalhd'
build() {
cd $srcdir/
msg "Connecting to git.wilsonet.com GIT server...."
if [ -d $srcdir/$_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
cd $_gitname
fi
cd linux_lib/libcrystalhd
make || return 1
}
package() {
cd $srcdir/$_gitname/linux_lib/libcrystalhd
make install DESTDIR=$pkgdir || return 1
# move lib/firmware to usr/lib/firmware
mv ${pkgdir}/lib/firmware ${pkgdir}/usr/lib/
rm -rf ${pkgdir}/lib
}
md5sums=()
|