# Maintainer: Natanael Copa pkgname=xf86-video-siliconmotion pkgver=1.7.7 pkgrel=6 pkgdesc="Silicon Motion video driver" url="http://xorg.freedesktop.org/" arch="all" license="custom" subpackages="$pkgname-doc" depends= makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto videoproto renderproto" source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2 git-fixes.patch " _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" update_config_sub || return 1 for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1 install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } md5sums="dc139f8ea17c40fb7bcc89181e9dbfb3 xf86-video-siliconmotion-1.7.7.tar.bz2 bc6b728144ff8f57d953e1ac997d0420 git-fixes.patch" sha256sums="87b8b59d43945d4fc8012860c0bd9aed42c4684a943355c607b8eb8d6710c3aa xf86-video-siliconmotion-1.7.7.tar.bz2 da4c149720e628eb808b2de86ff1ce7010622455d92dcd31026a9653a2213f08 git-fixes.patch" sha512sums="368ffa09e59368c18d8eda3ed44cff6de9b44df61624dd7449b3a9d55cca4f7271f0e3ff0ad45d2f312aadc084dae1d2cdecfe0ea42346ca9be2e0d0cf966e33 xf86-video-siliconmotion-1.7.7.tar.bz2 2a8a9113cbedbd7e8523a380286355102aa162ee73e107865fe75db2ce3922d5aa72cde480441f2cf02c1ba23a8f1c71c69c8da6075bf108526b1edc736de18b git-fixes.patch"