updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / linux4tegra / PKGBUILD
blobb6698ede18f3c7730d1effdbf2a331d1913cbe7d
1 pkgname=linux4tegra
2 pkgver=R12beta1
3 pkgrel=1
4 arch=(arm armv7h)
5 url="http://developer.nvidia.com/linux-tegra"
6 license=(custom)
7 options=(!strip)
8 pkgdesc="drivers and codecs for nvidia tegra platform"
10 platform=ventana # harmony / ventana / cardhu
11 source=("http://developer.nvidia.com/sites/default/files/akamai/tools/files/l4t/${platform}_Tegra-Linux-R12.beta.1.0.tbz2"
12         "http://developer.nvidia.com/sites/default/files/akamai/tools/files/l4t/${platform}_Tegra-Linux-codecs-R12.beta.1.0.tbz2"
13         "http://developer.nvidia.com/sites/default/files/akamai/tools/files/l4t/nvgstplayer.tbz2")
15 md5sums=('2184699e0adeb24e0994aaa89f285e35'
16          'a8a7f6b3ce6ca8c1700282efb36281bb'
17          '7a0540eec9c5703589550b2ccb1f38cb')
19 package() {
20   tar xaf $srcdir/Linux_for_Tegra/nv_tegra/base.tgz -C $pkgdir
21   tar xaf $srcdir/restricted_codecs.tbz2 -C $pkgdir
22   cp $srcdir/Linux_for_Tegra/nv_tegra/x/tegra_drv.abi11.so $pkgdir/usr/lib/xorg/modules/drivers/tegra_drv.so
23   cp -r $srcdir/usr $pkgdir/
24   rm -rf $pkgdir/{home,usr/sbin,lib/modules}
25   install -D -m644 "${srcdir}/Tegra_Software_License_Agreement-Linux_for_Tegra.pdf" "${pkgdir}/usr/share/licenses/${pkgname}/codecs_agreement.pdf"
26   install -D -m644 "${srcdir}/Linux_for_Tegra/nv_tegra/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"