diff options
Diffstat (limited to 'abs/extra/libcrystalhd-git/PKGBUILD')
-rw-r--r-- | abs/extra/libcrystalhd-git/PKGBUILD | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/abs/extra/libcrystalhd-git/PKGBUILD b/abs/extra/libcrystalhd-git/PKGBUILD index c0bf7d1..8778296 100644 --- a/abs/extra/libcrystalhd-git/PKGBUILD +++ b/abs/extra/libcrystalhd-git/PKGBUILD @@ -14,23 +14,25 @@ _gitroot='git://linuxtv.org/jarod/crystalhd.git' _gitname='crystalhd' build() { - - cd $startdir/src - + cd $srcdir/ msg "Connecting to git.wilsonet.com GIT server...." - - if [ -d $startdir/src/$_gitname ] ; then + 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=() |