From 8279814593eae176965b34ed6997ed6f78c68ba8 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 11 Feb 2016 17:28:55 +0000 Subject: libcrystalhd-git: update and move /lib to /usr/lib --- abs/extra/libcrystalhd-git/PKGBUILD | 16 +++++++++------- 1 file 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=() -- cgit v0.12