archrelease: copy trunk to extra-x86_64
[arch-packages.git] / xf86-video-vmware / repos / extra-x86_64 / PKGBUILD
blobd76bc45ecf5804552333d760726b1ae2aff780ca
1 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 pkgname=xf86-video-vmware
4 pkgver=13.3.0
5 pkgrel=3
6 pkgdesc="X.org vmware video driver"
7 arch=(x86_64)
8 url="https://xorg.freedesktop.org/"
9 license=('custom')
10 depends=('mesa' 'systemd-libs')
11 makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2') # 'git')
12 conflicts=('xorg-server<21.1.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26')
13 groups=('xorg-drivers')
14 options=('!emptydirs')
15 source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2{,.sig}
16         gcc8.diff)
17 sha512sums=('c318de893cae7b2b11e11c1b389ee47478b7c8d1f52c27099dbe453efec28f3e9da449217307a8c2251999eada66312f766996be1a6ead413b8b6dedc42c68ca'
18             'SKIP'
19             'd05522c84dfa1a88bb9e892087f0a67968142b87f1d7f902e8d77150eae7a26ef7f43cef256d2173be060042b86336123fa7c7f521b37ca98f8fb45871bf30ad')
20 validpgpkeys=('90D027AEAF33CBABC140735BC1F5D3CDF5176580') #  Thomas Hellstrom (VMware) <thellstrom@vmware.com>
22 prepare() {
23   cd $pkgname-${pkgver}
24   patch -Np0 -i ../gcc8.diff
27 build() {
28   cd ${pkgname}-${pkgver}
30   # Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
31   # With them, module fail to load with undefined symbol.
32   # See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
33   export CFLAGS=${CFLAGS/-fno-plt}
34   export CXXFLAGS=${CXXFLAGS/-fno-plt}
35   export LDFLAGS=${LDFLAGS/,-z,now}
37   ./configure --prefix=/usr --enable-vmwarectrl-client
38   make
41 package() {
42   cd ${pkgname}-${pkgver}
43   make DESTDIR="${pkgdir}" install
44   
45   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
46   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"