# Maintainer: Natanael Copa pkgname=libpciaccess pkgver=0.13.3 pkgrel=0 pkgdesc="X11 PCI access library" url="http://xorg.freedesktop.org/" arch="all" license="custom" subpackages="$pkgname-dev $pkgname-doc" depends= makedepends= source="http://xorg.freedesktop.org/releases/individual/lib/$pkgname-$pkgver.tar.bz2 fix-includes.patch fix-arm.patch " _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" ./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/*.la || return 1 install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } md5sums="1f65be5ffc55641c1846c2f41d180d00 libpciaccess-0.13.3.tar.bz2 c5d611d1ddaf5cc80a5061b5b08779ae fix-includes.patch 0381322b67ad34689013af74bdfe77c0 fix-arm.patch" sha256sums="6cd76ccae4e06eee47d3ead84a118740e9406e2a9b7adc9b08e92c69ce89c2e3 libpciaccess-0.13.3.tar.bz2 c52241f2017e0614e0c4e9ae94ff8f9c82dd2d93bf545a8ac28fe651c4da65eb fix-includes.patch 3ed71a117c3c89ffcdd1635bf66a95b906fdd79f96102d73b466bfa4f8c2bd8d fix-arm.patch" sha512sums="11ad783c6278e340973a621339cece3776c098952d0eaf96bfe745d013347e928c0883ed8444c5ddea870f5e4b3c25da16a44facb9d7fc1c8fea1c7e77bd592b libpciaccess-0.13.3.tar.bz2 055666cf4e61169c8e1b9f2dd687a627908369fe02e764afe270193e69af6c946b158d11e5d3ea2013ad46ee76f966fe490fd683a9ea5a61e22e95c1bc2d98c5 fix-includes.patch a6c95f42c926ffcd62014cf619c6aacf8db3b1862fa87c8eae9c3e64f31fcaddb682d34c767756bede5d2949a7285a415ca1d14249713bc12514c8e40f9d989f fix-arm.patch"