Advertisement
Guest User

PKGBUILD

a guest
Oct 18th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.52 KB | None | 0 0
  1. _pkgname=mutter
  2. pkgname=$_pkgname-amdgpu-pro
  3. pkgver=3.22.1
  4. pkgrel=1
  5. pkgdesc="mutter with support for amdgpu-pro"
  6. arch=('i686' 'x86_64')
  7. url="http://www.clutter-project.org/"
  8. license=('GPL')
  9. depends=('clutter' 'dconf' 'gsettings-desktop-schemas' 'libcanberra' 'startup-notification' 'zenity' 'libsm' 'gnome-desktop' 'upower' 'libxkbcommon-x11' 'gnome-settings-daemon' 'libgudev')
  10. makedepends=('intltool' 'libxkbcommon-x11' 'gobject-introspection' 'python2')
  11. optdepends=('amdgpu-pro: hybrid driver for AMDGPU cards')
  12. options=(!emptydirs)
  13. provides=("${_pkgname}")
  14. conflicts=("${_pkgname}")
  15. groups=('gnome')
  16. options=('!emptydirs')
  17. replaces=("${_pkgname}")
  18. source=("https://git.gnome.org/browse/mutter/snapshot/$_pkgname-$pkgver.tar.xz"
  19.         '~/mutter/mutter-patch.patch')
  20. sha256sums=('SKIP'
  21.             '0b0ed6087c6f76c314c896ad6af43631d5a2dbacae801be9aa2128c4dd795882')
  22.  
  23.  
  24.  
  25. prepare() {
  26.   cd "$_pkgname-$pkgver"
  27.  
  28.   # Apply shader fix (thanks @ashleysommer)
  29.   patch -p1 -i "${srcdir}/mutter-patch.patch"
  30.  
  31.   NOCONFIGURE=1 ./autogen.sh
  32. }
  33.  
  34. build() {
  35.   cd "$_pkgname-$pkgver"
  36.   ./configure --prefix=/usr \
  37.       --sysconfdir=/etc \
  38.       --libexecdir=/usr/lib/mutter \
  39.       --localstatedir=/var --disable-static \
  40.       --disable-schemas-compile \
  41.       --enable-compile-warnings=minimum
  42.  
  43.   #https://bugzilla.gnome.org/show_bug.cgi?id=655517
  44.   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  45.  
  46.   make
  47. }
  48.  
  49. package() {
  50.   cd "$_pkgname-$pkgver"
  51.   make DESTDIR="$pkgdir" install
  52. }
  53.  
  54. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement