Skip to content

Instantly share code, notes, and snippets.

@DeadMetaler
Last active July 13, 2018 23:39

Revisions

  1. DeadMetaler revised this gist Oct 8, 2017. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions PKGBUILD
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    pkgname=mutter
    pkgver=3.24.3
    pkgver=3.26.1
    pkgrel=1
    pkgdesc="A window manager for GNOME"
    url="https://git.gnome.org/browse/mutter"
    @@ -11,7 +11,7 @@ depends=(dconf gobject-introspection-runtime gsettings-desktop-schemas
    makedepends=(intltool gobject-introspection git gnome-common)
    groups=(gnome)
    options=(!emptydirs)
    source=("git+https://git.gnome.org/browse/mutter#branch=gnome-3-24")
    source=("git+https://git.gnome.org/browse/mutter#branch=gnome-3-26")
    sha256sums=('SKIP')

    pkgver() {
    @@ -34,7 +34,7 @@ build() {
    ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
    --libexecdir=/usr/lib/$pkgname --disable-static \
    --disable-schemas-compile --enable-compile-warnings=minimum \
    --enable-gtk-doc --enable-egl-device
    --enable-gtk-doc --enable-egl-device --enable-remote-desktop

    #https://bugzilla.gnome.org/show_bug.cgi?id=655517
    sed -e 's/ -shared / -Wl,-O1,--as-needed\0/g' \
  2. DeadMetaler created this gist Jun 23, 2017.
    49 changes: 49 additions & 0 deletions PKGBUILD
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    pkgname=mutter
    pkgver=3.24.3
    pkgrel=1
    pkgdesc="A window manager for GNOME"
    url="https://git.gnome.org/browse/mutter"
    arch=(i686 x86_64)
    license=(GPL)
    depends=(dconf gobject-introspection-runtime gsettings-desktop-schemas
    libcanberra startup-notification zenity libsm gnome-desktop upower
    libxkbcommon-x11 gnome-settings-daemon libgudev libinput)
    makedepends=(intltool gobject-introspection git gnome-common)
    groups=(gnome)
    options=(!emptydirs)
    source=("git+https://git.gnome.org/browse/mutter#branch=gnome-3-24")
    sha256sums=('SKIP')

    pkgver() {
    cd $pkgname
    git describe --tags | sed 's/-/+/g'
    }

    prepare() {
    cd $pkgname

    git revert -n 383ba566bd7c2a76d0856015a66e47caedef06b6


    NOCONFIGURE=1 ./autogen.sh
    }

    build() {
    cd $pkgname

    ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
    --libexecdir=/usr/lib/$pkgname --disable-static \
    --disable-schemas-compile --enable-compile-warnings=minimum \
    --enable-gtk-doc --enable-egl-device

    #https://bugzilla.gnome.org/show_bug.cgi?id=655517
    sed -e 's/ -shared / -Wl,-O1,--as-needed\0/g' \
    -i {.,cogl,clutter}/libtool

    make
    }

    package() {
    cd $pkgname
    make DESTDIR="$pkgdir" install
    }