# Maintainer: Natanael Copa pkgname=xf86-video-openchrome pkgver=0.6.0 pkgrel=7 pkgdesc="X.Org driver for VIA/S3G cards" url="https://xorg.freedesktop.org" arch="all" license="MIT" subpackages="$pkgname-doc" makedepends="xorg-server-dev libxi-dev libxvmc-dev mesa-dev util-macros xorgproto libxv-dev" source="https://www.x.org/releases/individual/driver/xf86-video-openchrome-$pkgver.tar.bz2 openchrome.xinf gcc-10.patch " prepare() { update_config_sub default_prepare } build() { export CFLAGS="${CFLAGS/-fno-plt}" export CXXFLAGS="${CXXFLAGS/-fno-plt}" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr make } check() { make check } package() { make DESTDIR="$pkgdir" install install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING install -Dm644 "$srcdir"/openchrome.xinf \ "$pkgdir"/usr/share/hwdata/videoaliases/openchrome.xinf } sha512sums=" f074e70d54c87a9d6e1b52c2c2d72d7c551dcb59a5f34c0a5f9495db1a6e45db4300d51fabf7eedfbe91f964f9422931c752a49b322715c6aa9ddb0db9dd6004 xf86-video-openchrome-0.6.0.tar.bz2 b900999fc678f0efdcb526d2f0e0f141ed8ca9403bd2b9895c96be2f5efc424feb50f1828c54cdaf0d7d9b9e723e834068ce36841fac97a2e5209873e8e711c3 openchrome.xinf 5f585f5fddf3a66d67c805f7187002f14dc3f1b0bc12446921c1064090ae32102ba4227fd2d15d52ae755c5ccc718f315ccbf2c277e7639cfef70297cc56b41a gcc-10.patch "