# Maintainer: Natanael Copa pkgname=xf86-video-ast pkgver=1.0.1 pkgrel=1 pkgdesc="X.Org driver for ASpeedTech cards" url="http://xorg.freedesktop.org/" arch="all" license="custom" subpackages="$pkgname-doc" depends= makedepends="xorg-server-dev libxi-dev fontsproto randrproto videoproto renderproto" source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2 " _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" 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 install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } md5sums="63ac98d6526e3e27e290e1836a229059 xf86-video-ast-1.0.1.tar.bz2" sha256sums="e778f1824f5eed7e3197f00f39418de1525e310fd78e0335f6178c26b9b0495b xf86-video-ast-1.0.1.tar.bz2" sha512sums="d7c5bb52f05a8ebd4a3e5ae8554462793d9038980d8607c1bfd5c6b89f4a1b0a83931792315cd170900197c8d7a28d47e761f2e1a344218d2b1c49140eb8faa0 xf86-video-ast-1.0.1.tar.bz2"