Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2018
1,876
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.79 KB | None | 0 0
  1. # $Id$
  2. # Maintainer: Bash Booster <[email protected]>
  3. # Based on original PKGBUILD by: Jan de Groot <[email protected]>,  Alexander Baldeck <[email protected]> and AUR contributors:
  4. # Contributor: Marcin Kocur <[email protected]>
  5. # Contributor: Riccardo Berto <[email protected]>
  6. # Contributor: vbmithr
  7. # Contributor: Flamelab <panosfilip at gmail dot com>
  8. # Contributor: Dan Ziemba <[email protected]>
  9.  
  10. pkgname=xf86-video-ati-git
  11. pkgver=18.0.1.r37.g64bd009d
  12. pkgrel=1
  13. epoch=1
  14. pkgdesc="X.org ati video driver"
  15. arch=('x86_64')
  16. url="https://xorg.freedesktop.org/"
  17. license=('custom')
  18. depends=('libsystemd' 'mesa')
  19. makedepends=('xorg-server-devel' 'systemd' 'X-ABI-VIDEODRV_VERSION=24.0')
  20. conflicts=('xorg-server<1.20.0' 'X-ABI-VIDEODRV_VERSION<24' 'X-ABI-VIDEODRV_VERSION>=25' 'xf86-video-ati')
  21. groups=('xorg-drivers')
  22. source=('xf86-video-ati::git://anongit.freedesktop.org/xorg/driver/xf86-video-ati')
  23. md5sums=('SKIP')
  24.  
  25. pkgver() {
  26.   cd "$srcdir/xf86-video-ati"
  27.   ( set -o pipefail
  28.   git describe --long | sed 's/^xf86-video-ati-//;s/\([^-]*-g\)/r\1/;s/-/./g'
  29.   )
  30. }
  31.  
  32.  
  33. build() {
  34.   cd "$srcdir/xf86-video-ati"
  35.  
  36.   # Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
  37.   # With them, module fail to load with undefined symbol.
  38.   # See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
  39.   export CFLAGS=${CFLAGS/-fno-plt}
  40.   export CXXFLAGS=${CXXFLAGS/-fno-plt}
  41.   export LDFLAGS=${LDFLAGS/,-z,now}
  42.  
  43.   ./autogen.sh --prefix=/usr \
  44.     --enable-glamor
  45.   make
  46. }
  47.  
  48. check() {
  49.   cd "$srcdir/xf86-video-ati"
  50.   make check
  51. }
  52.  
  53. package() {
  54.   cd "$srcdir/xf86-video-ati"
  55.  
  56.   make "DESTDIR=${pkgdir}" install
  57.   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  58.   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement