You are not logged in.

#1901 2013-04-16 23:13:12

aabmass
Member
Registered: 2011-12-14
Posts: 34

Re: Progress on Unity under Arch Linux!

chenxiaolong wrote:

By the way, new updates for Nux and Unity are building now. It should have a few performance enhancements with regards to the dash smile

Could that maybe fix the performance problems with active blur that affect the dash and alt-tab or is that only compiz related?

Offline

#1902 2013-04-17 08:34:47

samuaz
Member
Registered: 2012-10-07
Posts: 32

Re: Progress on Unity under Arch Linux!

hi guys, apparently the problem with the freezing when minimize or close windows its fixed, to fix it i enable in gnome-tweak-tools the option for nautils manage the desktop and after that i no have the problem anymore for now.

but i have a problem with firefox, firefox sometimes open and sometimes not open, anyone have this problem too?

and other question how i can get all the traslations for unity somethings are in english and others in spanish i want all in spanish how?

thanks people nice work with the unity works better than in ubuntu!!

Offline

#1903 2013-04-17 15:07:52

jvaldezjr
Member
Registered: 2010-02-26
Posts: 28

Re: Progress on Unity under Arch Linux!

I just wanted to thank Chen, and anyone else helping on this project.  I finished building unity this morning and it's working.  Smooth, great performance, and complete with Arch Branding makes this so much better than Ubuntu.

Offline

#1904 2013-04-17 22:09:50

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Progress on Unity under Arch Linux!

gianluca.pettinello wrote:

I would like to join Sollidsnake in thanking the people in this thread, especially chenxiaolong. My experience is very close to what sollidsnake has said, with the difference that I moved recently to arch from ubuntu.
By the way is the branch gnome 3.8 actively developed, I mean the last updates are included?

Thanks again
Gianluca

Glad you're enjoying Unity-for-Arch!

I haven't worked on the GNOME 3.8 branch very much yet because it wasn't fully packaged in [gnome-unstable] the last time I checked. When Arch has a complete set of GNOME 3.8 packages (in [gnome-unstable] or [testing]), I'll work on that branch again big_smile

Offline

#1905 2013-04-17 22:12:23

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Progress on Unity under Arch Linux!

aabmass wrote:
chenxiaolong wrote:

By the way, new updates for Nux and Unity are building now. It should have a few performance enhancements with regards to the dash smile

Could that maybe fix the performance problems with active blur that affect the dash and alt-tab or is that only compiz related?

If active blur also affects Alt + Tab, then I don't think this release fixed the issue. It should make searching (actually, the showing up of the results) faster though.

Offline

#1906 2013-04-17 22:15:25

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Progress on Unity under Arch Linux!

samuaz wrote:

hi guys, apparently the problem with the freezing when minimize or close windows its fixed, to fix it i enable in gnome-tweak-tools the option for nautils manage the desktop and after that i no have the problem anymore for now.

but i have a problem with firefox, firefox sometimes open and sometimes not open, anyone have this problem too?

and other question how i can get all the traslations for unity somethings are in english and others in spanish i want all in spanish how?

thanks people nice work with the unity works better than in ubuntu!!

Glad you enjoy Unity on Arch smile

For the Firefox problem, try removing firefox-extension-websites-integration and firefox-extension-unity. Note that the Unity WebApps feature will stop working.

Could you post a screenshot of what is not translated in Unity?

Last edited by chenxiaolong (2013-04-17 22:15:37)

Offline

#1907 2013-04-17 22:21:11

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Progress on Unity under Arch Linux!

jvaldezjr wrote:

I just wanted to thank Chen, and anyone else helping on this project.  I finished building unity this morning and it's working.  Smooth, great performance, and complete with Arch Branding makes this so much better than Ubuntu.

Really glad you're enjoying Unity on Arch!

If you find an Ubuntu logo anywhere, let me know, and it will become an Arch logo after the next update smile

Offline

#1908 2013-04-17 22:32:04

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Progress on Unity under Arch Linux!

To people who are using my testing repo:

Because of a small bug in my chroot build scripts, a couple of packages are stuck at an older version. Please download and install the latest version of nautilus-ubuntu and frame directly from my build server.

http://cxl.epac.to:8091/job/UFA-2.0-Bui … us-ubuntu/
http://cxl.epac.to:8091/job/UFA-2.0-Build-frame/

People compiling the packages from source are not affected.

Explanation:

My build server basically does: Build package -> Copy package to repo -> Build repo -> Remove old packages from repo

In the "Build repo" stage, the server was running a command like:

repo-add *.pkg.tar.xz

The problem is that the directory had nautilus-3.6.3-0ubuntu9.pkg.tar.xz and nautilus-3.6.3-0ubuntu16.pkg.tar.xz in it, so the '*.pkg.tar.xz' would sort the 0ubuntu9 *after* the 0ubuntu16. The repo would then keep the older version until bash can find a file greater (alphabetically) than 0ubuntu9.

The fix (https://github.com/chenxiaolong/Unity-f … 1c4a4a22e4) will change the build procedure to: Build package -> Copy package to repo -> Remove old packages from repo -> Build repo

It will use paccache to make sure that the old package is actually "old" before removing it.

Offline

#1909 2013-04-18 08:12:11

samuaz
Member
Registered: 2012-10-07
Posts: 32

Re: Progress on Unity under Arch Linux!

chenxiaolong wrote:

Glad you enjoy Unity on Arch smile

For the Firefox problem, try removing firefox-extension-websites-integration and firefox-extension-unity. Note that the Unity WebApps feature will stop working.

Could you post a screenshot of what is not translated in Unity?

hi thanks, the parts of the unity that are not traslated are in resume, the top panel, the system settings, the dashboard and also the lightdm are in full english, note not all things are not traslated, are mixed in spanish and english like spanglish xD, some screenshots here:

https://www.dropbox.com/sh/2dbk9uzvyo2e … /unityarch

thanks and greetings

Last edited by samuaz (2013-04-18 08:19:28)

Offline

#1910 2013-04-18 21:15:48

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Progress on Unity under Arch Linux!

samuaz wrote:

hi thanks, the parts of the unity that are not traslated are in resume, the top panel, the system settings, the dashboard and also the lightdm are in full english, note not all things are not traslated, are mixed in spanish and english like spanglish xD, some screenshots here:

https://www.dropbox.com/sh/2dbk9uzvyo2e … /unityarch

thanks and greetings

Thanks for the screenshots!

I've just finished adding translations to all the Unity-for-Arch packages. The interface should no longer be in Spanglish smile Just install the latest updates and relogin.

Offline

#1911 2013-04-18 22:25:29

samuaz
Member
Registered: 2012-10-07
Posts: 32

Re: Progress on Unity under Arch Linux!

chenxiaolong wrote:

Thanks for the screenshots!

I've just finished adding translations to all the Unity-for-Arch packages. The interface should no longer be in Spanglish smile Just install the latest updates and relogin.

hi, first thanks for your work, i make the update relog and restart but things in English, still in English, i try to change my locale to other Es_XX format like LANG=es_HN.utf8 and LANG=es_ES.utf8 and remake a local-gen but also not worked, still in english, any ideas?

thanks

Last edited by samuaz (2013-04-18 23:06:04)

Offline

#1912 2013-04-19 17:29:16

blue
Member
Registered: 2011-10-13
Posts: 8

Re: Progress on Unity under Arch Linux!

try it with

localectl set-locale

Offline

#1913 2013-04-19 21:06:02

samuaz
Member
Registered: 2012-10-07
Posts: 32

Re: Progress on Unity under Arch Linux!

blue wrote:

try it with

localectl set-locale

thanks i try it, partially worked, now there are fewer things in English, I think they need these translations.

eg system settings now are in Spanish and also the network applet, sound and the clock, but the dashboard is in English and also some other applets on the top panel, such as shutdown, the battery, the social.

I think these remaining need add the translations

thank you very much.

other questions, how make empathy and gwibber work, because the two fail to connect, I have installed signon-keyring-extension, gnome-keyring and telepathy and all Unity-for-arch-extra repo

but not connected, but pidgin connect and work without problem.

i update the screenshot of the things that are not yet translated and empathy and gwibber.

https://www.dropbox.com/sh/2dbk9uzvyo2e … /unityarch

Thanks and sorry for making you work extra.

Offline

#1914 2013-04-19 23:37:19

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Progress on Unity under Arch Linux!

samuaz wrote:
blue wrote:

try it with

localectl set-locale

thanks i try it, partially worked, now there are fewer things in English, I think they need these translations.

eg system settings now are in Spanish and also the network applet, sound and the clock, but the dashboard is in English and also some other applets on the top panel, such as shutdown, the battery, the social.

I think these remaining need add the translations

thank you very much.

other questions, how make empathy and gwibber work, because the two fail to connect, I have installed signon-keyring-extension, gnome-keyring and telepathy and all Unity-for-arch-extra repo

but not connected, but pidgin connect and work without problem.

i update the screenshot of the things that are not yet translated and empathy and gwibber.

https://www.dropbox.com/sh/2dbk9uzvyo2e … /unityarch

Thanks and sorry for making you work extra.

Awesome! I'll work on the rest of the translations. (I'll update the post as I fix them) EDIT: All translations should be fixed now smile Please let me know if something is still not translated properly (or if the translation is incorrect). For the Empathy issue, can you post a screenshot of the "Online Accounts" page from the System Settings?

"Search your computer and online sources"
-> Package: unity
-> Should be fixed in version 7.0.0.daily13.04.18.13.04-100

Battery menu
-> Package: indicator-power
-> Should be fixed in version 12.10.6daily13.03.07-104

"Arch Linux Desktop"
-> Package: unity
-> Fixed in version 7.0.0.daily13.04.18.13.04-102

"About This Computer" / "Lock"
-> Package: indicator-session
-> Fixed in version 12.10.5daily13.03.08-108

Messaging indicator
-> Package: indicator-messages
-> Fixed in version 12.10.6daily13.04.09-103

Last edited by chenxiaolong (2013-04-20 00:50:40)

Offline

#1915 2013-04-20 02:57:59

samuaz
Member
Registered: 2012-10-07
Posts: 32

Re: Progress on Unity under Arch Linux!

chenxiaolong wrote:

Awesome! I'll work on the rest of the translations. (I'll update the post as I fix them) EDIT: All translations should be fixed now smile Please let me know if something is still not translated properly (or if the translation is incorrect). For the Empathy issue, can you post a screenshot of the "Online Accounts" page from the System Settings?

great news thanks, here the screenshots of online accounts :

https://www.dropbox.com/sh/2dbk9uzvyo2e … ch/empathy

note in the online accounts page say "remove account" in spanish should be "Eliminar Cuenta" xD

for extra info for the empathy problem, before to install the unity previous i have kde installed and empathy and the online accounts works without problem, after for install unity first i remove kde with sudo pacman -Rsnc kde kde-meta

and next i install gnome, gnome-extra and unity:

sudo pacman -S gnome gnome-extra
sudo pacman -Suy
sudo pacman -S $(pacman -Slq Unity-for-Arch Unity-for-Arch-Extra)

Offline

#1916 2013-04-20 06:10:04

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Progress on Unity under Arch Linux!

samuaz wrote:

great news thanks, here the screenshots of online accounts :

https://www.dropbox.com/sh/2dbk9uzvyo2e … ch/empathy

note in the online accounts page say "remove account" in spanish should be "Eliminar Cuenta" xD

for extra info for the empathy problem, before to install the unity previous i have kde installed and empathy and the online accounts works without problem, after for install unity first i remove kde with sudo pacman -Rsnc kde kde-meta

and next i install gnome, gnome-extra and unity:

sudo pacman -S gnome gnome-extra
sudo pacman -Suy
sudo pacman -S $(pacman -Slq Unity-for-Arch Unity-for-Arch-Extra)

Sorry for the short reply. It's really late here...:)

I've updated the translations in credentials-preferences-ubuntu (version 0.1.5-3), so "Remove Account" should be translated properly now.

If empathy used to work fine, could you install the official "empathy" package? Since you have Unity-for-Arch-Extra installed, I assume you currently have empathy-ubuntu installed.

Offline

#1917 2013-04-21 07:29:48

samuaz
Member
Registered: 2012-10-07
Posts: 32

Re: Progress on Unity under Arch Linux!

chenxiaolong wrote:

Sorry for the short reply. It's really late here...:)

I've updated the translations in credentials-preferences-ubuntu (version 0.1.5-3), so "Remove Account" should be translated properly now.

If empathy used to work fine, could you install the official "empathy" package? Since you have Unity-for-Arch-Extra installed, I assume you currently have empathy-ubuntu installed.

thanks, yes i have the empathy-ubuntu, now i install the official empathy and it works without problem, but not integration with unity

i think all programs that use system settings - online accounts not works because gwibber used it too like empathy-ubuntu and gwibber no work.

and related to the traslation all good now, only lightdm are in english and related to unity only the everpad tab in the dashboard and in the top panel when you are in the desktop the phrase "Arch linux Desktop" in spanish should be "Escritorio de Arch linux" something like that xD

thanks again, have a nice weekend

Last edited by samuaz (2013-04-21 07:32:54)

Offline

#1918 2013-04-22 09:08:20

kuglee
Member
Registered: 2011-09-02
Posts: 61

Re: Progress on Unity under Arch Linux!

The latest upgrade broke unity, and I don't know which packages to downgrade. sad (I've downgraded gnome-desktop and gsettings-desktop-schemas, so at least I have desktop.)

EDIT: libgee also has to be downgraded.
UPDATE: There's a libgee06package in the extra repo. This can be installed alongside libgee.

Last edited by kuglee (2013-04-22 11:29:41)

Offline

#1919 2013-04-22 10:36:54

samuaz
Member
Registered: 2012-10-07
Posts: 32

Re: Progress on Unity under Arch Linux!

for my too lasted update of gnome to gnome 3.8.1 broke unity totally, and for my side gnome desktop its also broke too, i try doing a fresh install but continue broken an try only installing gnome (3.8.1) and its broken for my too, so i force to install kde for have computer
damn gnome!! sad

Offline

#1920 2013-04-22 11:25:51

kuglee
Member
Registered: 2011-09-02
Posts: 61

Re: Progress on Unity under Arch Linux!

samuaz: Try downgrading gnome-desktop and gsettings-desktop-schemas. With these packages I have desktop.

Offline

#1921 2013-04-22 11:33:53

gianluca.pettinello
Member
Registered: 2013-04-16
Posts: 72

Re: Progress on Unity under Arch Linux!

Same experience with gnome 3.8.1
First disable all the testing repositories.
Then reinstall gtk3, all the packages ending with ubuntu gnome gnome-extra and gdm.
Should be enough to come back.to.gnome
Then reinstall unity. Anyway gtk3 is the one messing everything.
I'm working on Gnome3.8 branch. I succeeded in updating the pkgbuild of gtk3 in a virtual machine
But still to get everything compiled. Chen and other heroes think will work on that.
Chen if you are interested I can send you the pkgbuild I did. I'm not familiar with git sorry

Offline

#1922 2013-04-22 14:24:41

steeeve
Member
Registered: 2013-03-03
Posts: 8

Re: Progress on Unity under Arch Linux!

kuglee wrote:

The latest upgrade broke unity, and I don't know which packages to downgrade. sad (I've downgraded gnome-desktop and gsettings-desktop-schemas, so at least I have desktop.)

EDIT: libgee also has to be downgraded.
UPDATE: There's a libgee06package in the extra repo. This can be installed alongside libgee.

Same problem here. I can login, but then there is only a black screen with a mouse, nothing else.

Last edited by steeeve (2013-04-22 15:28:21)

Offline

#1923 2013-04-22 18:19:45

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Progress on Unity under Arch Linux!

Darn it, why did I have to be in school during the GNOME 3.8 update...

DO NOT UPDATE TO GNOME 3.8!

Do NOT install any packages from the GNOME-3.8 branch of the git repo right now either. It will break your system!

It'll be around an hour and a half before I get home to start fixing this mess.

For current status, see: https://github.com/chenxiaolong/Unity-for-Arch/pull/96

Offline

#1924 2013-04-22 19:58:27

gianluca.pettinello
Member
Registered: 2013-04-16
Posts: 72

Re: Progress on Unity under Arch Linux!

Chen,
I have the following PKGBUILDs aready done:
gtk2-ubuntu
--------------------------------------
# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
# Original Maintainer: György Balló <ballogy@freestart.hu>

pkgname=gtk2-ubuntu
_ubuntu_rel=0ubuntu2
pkgver=2.24.17
pkgrel=102
pkgdesc="GTK+ is a multi-platform toolkit (v2)"
arch=('i686' 'x86_64')
url="http://www.gtk.org/"
license=('LGPL')
depends=('atk' 'pango' 'libxcursor' 'libxinerama' 'libxrandr' 'libxi' 'libxcomposite' 'libxdamage' 'shared-mime-info' 'libcups' 'gtk-update-icon-cache' 'python2')
makedepends=('pkg-config' 'gobject-introspection' 'gtk-doc')
provides=("gtk2=${pkgver}")
conflicts=('gtk2')
replaces=('gtk2-docs')
backup=('etc/gtk-2.0/gtkrc')
options=('!libtool')
install=arch_gtk2.install
source=("http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-${pkgver}.tar.xz"
        "https://launchpad.net/ubuntu/+archive/p … ian.tar.gz"
        'arch_xid-collision-debug.patch'
        'fix-ubuntumenuproxy-build.patch')
sha512sums=('7a83555b4b6eb534bbdb77eae85164e182d68f786a72dcdbf41e221a25af0981263cc6637427cdf8984f82064927fb38d370d3f8621b7b056b3b5dbd92bcaf79'
            'f586389974982482497ca659e6d61e6798f4c141bc824af78b7f95cc351f9dfac33060269bf8250c391ed61cd6212a58fdeb711dde11e27c3a919cf45f9eb0c7'
            '89e3223c86731a76b12d39245f1ec4cf8b4860ab1d11d74a10e5deb0db302f20b4bb5d9034da1d8aeb96369dbdeddcdd2f28943270dc501476c694562b960159'
            '4b27afecb82e3517c2584665f8d2a2911193254a00b82ff8064caf4016ab029c76e99af502bb9271a66209594b50b2729797defcc9512d341aa61aff4f64ec24')

prepare() {
  cd "${srcdir}/gtk+-${pkgver}"

  patch -p1 -i "${srcdir}/arch_xid-collision-debug.patch"

  # Apply Ubuntu patches

  # Certain patches should not be used
    # Multiarch
      sed -i '/041_ia32-libs.patch/d' "${srcdir}/debian/patches/series"
      sed -i '/098_multiarch_module_path.patch/d' "${srcdir}/debian/patches/series"
    # Static linking stuff for udebs
      sed -i '/001_static-linking-dont-query-immodules.patch/d' "${srcdir}/debian/patches/series"
      sed -i '/002_static-linking-dont-build-perf.patch/d' "${srcdir}/debian/patches/series"
    # Breaks pkgconfig
      sed -i '/003_gdk.pc_privates.patch/d' "${srcdir}/debian/patches/series"
    # gtk.immodules is in /etc/gtk-2.0/ in Arch Linux, not
    # /usr/lib/gtk-2.0/2.10.0/
      sed -i '/011_immodule-cache-dir.patch/d' "${srcdir}/debian/patches/series"

  # Build fix from György Balló
  patch -p1 -i "${srcdir}/fix-ubuntumenuproxy-build.patch"

  for i in $(cat "${srcdir}/debian/patches/series" | grep -v '#'); do
    patch -p1 -i "${srcdir}/debian/patches/${i}"
  done
}

build() {
  cd "${srcdir}/gtk+-${pkgver}"

  autoreconf -vfi

  CXX=/bin/false ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --with-xinput=yes \
    --enable-test-print-backend

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

  make
}

package() {
  cd "${srcdir}/gtk+-${pkgver}"

  make DESTDIR="${pkgdir}" install
  sed -i "s#env python#env python2#" "${pkgdir}/usr/bin/gtk-builder-convert"
  echo 'gtk-fallback-icon-theme = "gnome"' > "${pkgdir}/etc/gtk-2.0/gtkrc"
  # Use the official gtk-update-icon-cache package
  rm -v "${pkgdir}/usr/bin/gtk-update-icon-cache"
}

# vim:set ts=2 sw=2 et:
---------------------------------------------------------------
gtk3-ubuntu
----------------------------------------------------------------
# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
# Original Maintainer: György Balló <ballogy@freestart.hu>

pkgname=gtk3-ubuntu
_actual_ver=3.8.1
_ubuntu_ver=~git20130409.0077c2ac-0ubuntu1~13.04~ricotz0
_arch_ver=0ubuntu1
pkgver=${_actual_ver}.${_arch_ver}
pkgrel=100
pkgdesc="GObject-based multi-platform toolkit (v3)"
arch=('i686' 'x86_64')
url="http://www.gtk.org/"
install=arch_gtk3.install
depends=('atk' 'cairo' 'gtk-update-icon-cache' 'libcups' 'libxcursor' 'libxinerama' 'libxrandr' 'libxi' 'libxcomposite' 'libxdamage' 'pango' 'shared-mime-info' 'colord' 'at-spi2-atk' 'wayland' 'libxkbcommon')
makedepends=('gobject-introspection' 'mesa')
checkdepends=('hicolor-icon-theme' 'xorg-server-xvfb')
provides=("gtk3=${_actual_ver}")
conflicts=('gtk3')
options=('!libtool' '!docs')
backup=('etc/gtk-3.0/settings.ini')
license=('LGPL')
source=("http://ftp.gnome.org/pub/GNOME/sources/gtk+/${_actual_ver%.*}/gtk+-${_actual_ver}.tar.xz"
        "https://launchpad.net/~ricotz/+archive/ … ian.tar.gz"
        '0001_Add_broadway_symbols.patch'
        '0002_Disable_Failing_Tests.patch'
        'arch_settings.ini')
sha512sums=('384c629f652452113d627967eca926ab66ee22ed6ed1b7d0d3f74bc8d8940cf82f0a91209d0d4fd28acf732404d2312d38992fbc47763e3baf453d9e9692ff08'
            '049fa1644f3cfeebe67b9b2335793c95fa38b85a0c79b939a0d88430879ccc9a6aaa30ceb71bb3d85aa87e22c8af0aa5184e722d7acd1d1c786bbb102707c108'
            'ff362d47d8115861de9efa6e1fd55fbeca1cd544f0e041abf9c34f0a6d5289a762b5d26ed9bdcfd66c82a42a8b2478ff4f64f6e263b1960f647fccc7fa90d0e0'
            '726eab0c807d126dd384f5a0b0b87932a1c1ab4c4d55b204f9fd5a92dcad3d15dd7882f0dfb40ff56e2022ad6fcf7f7cb49b42034a9996b2a11b003281e1aa1f'
            '087bf853cb9f6ee8269c60041555ee1546a2d10fbdbe820710c77a74bb9c34735abe8b061e2a0322246932d7a72b21953682fcdca79b09fd555307abb1d88699')

prepare() {
  cd "${srcdir}/gtk+-${_actual_ver}"

  # Add Broadway sumbols to tests pass
  patch -p1 -i "${srcdir}/0001_Add_broadway_symbols.patch"

  # Disable failing tests (probably not updated)
  patch -p1 -i "${srcdir}/0002_Disable_Failing_Tests.patch"

  # Apply Ubuntu Patches
    # Disable patches
      # Debian/Ubuntu's multiarch
        sed -i '/061_multiarch_module_fallback.patch/d' "${srcdir}/debian/patches/series"
      # Fedora's tracker is not compiled with FTS
      #  sed -i '/044_tracker_fts.patch/d' debian/patches/series
      # Ubuntu's defaults
        sed -i '/022_disable-viqr-im-for-vi-locale.patch/d' "${srcdir}/debian/patches/series"
      # Not needed
        sed -i '/071_fix-installation-of-HTML-images.patch/d' "${srcdir}/debian/patches/series"
      # Drop git patches
        #sed -i '/git/d' "${srcdir}/debian/patches/series"
        # Except this one
          #echo 'git_gtkcellrenderer_grabbing_modifier.patch' >> "${srcdir}/debian/patches/series"

  for i in $(cat "${srcdir}/debian/patches/series" | grep -v '#'); do
    msg "Applying ${i} ..."
    patch -p1 -i "${srcdir}/debian/patches/${i}"
  done
}

build() {
  cd "${srcdir}/gtk+-${_actual_ver}"

  autoreconf -vfi

  #CXX=/bin/false ./configure \
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --enable-gtk2-dependency \
    --disable-schemas-compile \
    --enable-x11-backend \
    --enable-broadway-backend \
    --enable-wayland-backend \
    --enable-test-print-backend

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

  make
}

# Okay, these tests are obviously untested. There's no reason GTK 3 needs to be
# installed for them to run.
check() {
  cd "${srcdir}/gtk+-${_actual_ver}"

  # Do the GTK developers even check that their tests work?
  rm ./tests/css/parser/background-shorthand.css
  rm ./tests/css/parser/background-shorthand-single.css
  rm ./tests/css/parser/declarations-valid-22.css
  rm ./tests/css/parser/declarations-valid-23.css
  rm ./tests/a11y/about.ui
  rm ./tests/a11y/combos.ui
  rm ./tests/a11y/menu.ui
  rm ./tests/a11y/notebook.ui
  rm ./tests/a11y/pickers.ui
  #make -j1 check
}

package() {
  cd "${srcdir}/gtk+-${_actual_ver}"
  make DESTDIR="${pkgdir}" install

  install -Dm644 "${srcdir}/arch_settings.ini" \
    "${pkgdir}/etc/gtk-3.0/settings.ini"
}

# vim:set ts=2 sw=2 et:
--------------------------------------------------------------
0002_Disable_Failing_Tests.patch
--------------------------------------------------------------
--- a/tests/a11y/Makefile.am
+++ b/tests/a11y/Makefile.am
@@ -48,17 +48,17 @@
    hello-world.ui hello-world.txt \
    mnemonic.ui mnemonic.txt \
    accessible-name.ui accessible-name.txt \
-    notebook.ui notebook.txt \
+    notebook.txt \
    range.ui range.txt \
    link.ui link.txt \
    text.ui text.txt \
    buttons.ui buttons.txt \
    colorchooser.ui colorchooser.txt \
-    about.ui about.txt \
+    about.txt \
    messagedialog.ui messagedialog.txt \
    expander.ui expander.txt \
    assistant.ui assistant.txt \
-    pickers.ui pickers.txt \
+    pickers.txt \
    lockbutton.ui lockbutton.txt \
    spinner.ui spinner.txt \
    progress.ui progress.txt \
@@ -70,7 +70,7 @@
    entries.ui entries.txt \
    scale-drawvalue.ui scale-drawvalue.txt \
    placeholder-text.ui placeholder-text.txt \
-    menu.ui menu.txt \
-    combos.ui combos.txt
+    menu.txt \
+    combos.txt

-include $(top_srcdir)/git.mk
--- a/tests/css/parser/Makefile.am
+++ b/tests/css/parser/Makefile.am
@@ -157,9 +157,7 @@
    background-position-errors.ref.css \
    background-repeat.css \
    background-repeat.ref.css \
-    background-shorthand.css \
    background-shorthand.ref.css \
-    background-shorthand-single.css \
    background-shorthand-single.ref.css \
         background-size.css \
         background-size.ref.css \
@@ -262,9 +260,7 @@
    declarations-valid-20.ref.css \
    declarations-valid-21.css \
    declarations-valid-21.ref.css \
-    declarations-valid-22.css \
    declarations-valid-22.ref.css \
-    declarations-valid-23.css \
    declarations-valid-23.ref.css \
    declarations-valid-24.css \
    declarations-valid-24.ref.css \
--------------------------------------------------------------------
qt4-ubuntu
--------------------------------------------------------------------
# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
# Original Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>

# Cannot build if qt-ubuntu is installed
if $(pacman -Q qtwebkit &>/dev/null) && [ "x${IGNORE_NO_QTWEBKIT}" == 'x' ] && [ "x${UPDATE_SCRIPT}" == 'x' ]; then
  echo "" >&2
  error "qtwebkit must be temporarily removed before building."
  msg "Please run:"
  echo "" >&2
  echo "  pacman -Rdd qtwebkit" >&2
  echo "" >&2
  msg "and reinstalled after the build."
  echo "" >&2
  echo "(If for some reason, you need to override this message, run:)" >&2
  echo "" >&2
  echo "  IGNORE_NO_QTWEBKIT=yes makepkg" >&2
  exit 1
fi

pkgname=qt4-ubuntu
_ubuntu_rel=0ubuntu1
_extra_ver=+dfsg
pkgver=4.8.4
pkgrel=103
arch=('i686' 'x86_64')
url='http://qt-project.org/'
license=('GPL3' 'LGPL')
pkgdesc='A cross-platform application and UI framework'
depends=('libtiff' 'libpng' 'libmng' 'sqlite' 'ca-certificates' 'dbus' 'fontconfig' 'libgl' 'libxrandr' 'libxv' 'libxi' 'alsa-lib' 'xdg-utils' 'hicolor-icon-theme' 'desktop-file-utils')
makedepends=('postgresql-libs' 'mysql' 'unixodbc' 'cups' 'gtk2' 'libfbclient' 'mesa-libgl')
optdepends=('postgresql-libs: PostgreSQL driver'
            'libmysqlclient: MySQL driver'
            'unixodbc: ODBC driver'
            'libfbclient: Firebird/iBase driver'
            'libxinerama: Xinerama support'
            'libxcursor: Xcursor support'
            'libxfixes: Xfixes support'
            'icu: Unicode support')
install=${pkgname}.install
options=('!libtool')
provides=("qt4=${pkgver}")
replaces=('qt<=4.8.4' 'qt-ubuntu<=4.8.4')
conflicts=('qt4' 'qt' 'qt-ubuntu')
_pkgfqn="qt-everywhere-opensource-src-${pkgver}"
source=("http://releases.qt-project.org/qt4/source/${_pkgfqn}.tar.gz"
        "https://launchpad.net/ubuntu/+archive/p … ian.tar.gz"
        'qtconfig.desktop'
        'qt4.profile')
sha512sums=('472972b63b5cad83b4c4656b23e95b6d4923cc31a518138e25d5921982b14abc835883356c2b779a7972cb77cf73fe25b46630be7c6a86a917b364186aa17496'
            '84954b2dba277772a9801b4a5c8343c9360cafcbfdfe05de549a92da7b8b233fce786588cc0c7f927359f4742fec5a6a7cbaacc3efbc88661e5b1181d30763a9'
            '5148a34fb3f990cf72c95c3663bb77edd839ab6dec0a9141d0423afa91ed917d3c1a700113568ae99ba0c58a7b3ba25ddbaaec057e1d2b5ae41c4f9be0eb60da'
            'e9275b1851cdbf8d7be9827899789670dab7a1ef467e6477805ea44f464cb29feb47daeabe873bd86ddf3130a85280411ba84c17ab44cb2f398f50a4b05a2baf')

build() {
  cd "${srcdir}/${_pkgfqn}"

  # Apply Arch Linux patches
    # (FS#28381) (KDEBUG#180051)
      # Arch Linux: improve-cups-support.patch
      #  == Ubuntu: kubuntu_37_cups_settings.diff
    # (FS#29469)
      # Arch Linux: fix-crash-in-assistant.patch
      #  == Ubuntu: QTBUG-25324_assistant_segfault_on_start_with_gcc_4.7.patch

  # Apply Ubuntu patches
    # Disable patches (longest command you've ever seen? big_smile) (can't use
    # punctuation for comments or editors will completely screw up the
    # syntax highlighting)
      sed -i \
      `# Patch for adding '-qt4' to the end of the filenames of binaries` \
        -e '/01_debian_append_qt4_suffix.diff/d'                          \
      `# Multiarch patch for Debian/Ubuntu`                               \
        -e '/qt-multiarch-plugin-path-compat.diff/d'                      \
      `# Debian architecture detection {fails with:`                      \
      `# "Qt has not been ported to this architecture"}`                  \
        -e '/07_trust_dpkg-arch_over_uname-m.diff/d'                      \
      `# ARM v6 entry for previous patch`                                 \
        -e '/94_armv6_uname_entry.diff/d'                                 \
      `# Disable Qt webkit {exists in separate package}`                  \
        -e '/16_hide_std_symbols_on_qtwebkit.diff/d'                      \
        -e '/18_enable_qt3support_qtwebkit_debug_info.diff/d'             \
        -e '/30_webkit_unaligned_access.diff/d'                           \
        -e '/96_webkit_no_gc_sections.diff/d'                             \
        -e '/kubuntu_17_enable_qtwebkit_for_qtassistant.diff/d'           \
        -e '/kubuntu_34_no_gold_check.diff/d'                             \
      `# Fix FTBFS in buildd`                                             \
        -e '/11_build_translations.diff/d'                                \
      `# Disable enabling qvfb {does that make sense? big_smile} - it requires`  \
      `# the built-in Qt webkit`                                          \
        -e '/20_install_qvfb.diff/d'                                      \
      `# Debug packages arent used in Arch Linux - remove patch to`       \
      `# default to keeping debug symbols`                                \
        -e '/12_add_nostrip_for_debug_packages.diff/d'                    \
      `# Unsupported CPU architectures`                                   \
        -e '/add_missing_method_for_QBasicAtomicPointer_on_s390.patch/d'  \
        -e '/powerpc_designer_gstabs.diff/d'                              \
        -e '/kfreebsd_monotonic_clock.diff/d'                             \
        -e '/sh.diff/d'                                                   \
        -e '/powerpcspe.diff/d'                                           \
        -e '/99_hppa_bug561203_decrease_failure_rate.diff/d'              \
        -e '/92_armel_gcc43_valist_compat.diff/d'                         \
        -e '/80_hurd_max_path.diff/d'                                     \
        -e '/71_hppa_unaligned_access_fix_458133.diff/d'                  \
        -e '/70_hppa_ldcw_fix.diff/d'                                     \
        -e '/51_kfreebsd_strnstr_build_fix.diff/d'                        \
        -e '/50_kfreebsd_Q_OS.diff/d'                                     \
        -e '/41_disable_opengl_visibility.diff/d'                         \
        -e '/40_alpha_ice.diff/d'                                         \
        -e '/s390x_jscore.diff/d'                                         \
      `# Demos arent built on Arch Linux`                                 \
        -e '/buildable_appchooser_states_demos.patch/d'                   \
      `# This is not Debian or Ubuntu`                                    \
        -e '/08_configure_quilt_compat.diff/d'                            \
      `# Do not default to ibus`                                          \
        -e '/kubuntu_10_ibus_input_method.diff/d'                         \
      `# Tests arent built`                                               \
        -e '/10_config_tests_fixes.diff/d'                                \
      `# Not needed for rolling release distros`                          \
        -e '/23_permit_plugins_built_with_future_qt.diff/d'               \
      `# Do not hide stuff from the user`                                 \
        -e '/no_libicu_message.diff/d'                                    \
      \
      "${srcdir}/debian/patches/series"

  for i in $(cat "${srcdir}/debian/patches/series" | grep -v '#'); do
    msg "Applying patch: ${i}"
    patch -p1 -i "${srcdir}/debian/patches/${i}"
  done

  export QT4DIR="${srcdir}/${_pkgfqn}"
  export LD_LIBRARY_PATH="${QT4DIR}/lib:${LD_LIBRARY_PATH}"

  sed -i "s|-O2|${CXXFLAGS}|" mkspecs/common/{g++,gcc}-base.conf
  sed -i "/^QMAKE_LFLAGS_RPATH/s| -Wl,-rpath,||g" mkspecs/common/gcc-base-unix.conf
  sed -i "/^QMAKE_LFLAGS\s/s|+=|+= ${LDFLAGS}|g" mkspecs/common/gcc-base.conf

  # From debian/rules:
  # Remove include directory. Then ./configure will take care of calling
  # syncqt and regenerating it.
  rm -rvf include

  ./configure \
    `# License` \
    -confirm-license \
    -opensource \
    `# Paths and prefixes` \
    -bindir /usr/lib/qt4/bin \
    -datadir /usr/share/qt4 \
    -demosdir /usr/share/doc/qt4/demos \
    -docdir /usr/share/doc/qt4 \
    -examplesdir /usr/share/doc/qt4/examples \
    -headerdir /usr/include/qt4 \
    -importdir /usr/lib/qt4/imports \
    -plugindir /usr/lib/qt4/plugins \
    -prefix /usr \
    -sysconfdir /etc/xdg \
    -translationdir /usr/share/qt4/translations \
    `# Enable features` \
    -plugin-sql-ibase \
    -plugin-sql-mysql \
    -plugin-sql-odbc \
    -plugin-sql-psql \
    -plugin-sql-sqlite \
    `# Disable features` \
    -no-openvg \
    -no-phonon \
    -no-phonon-backend \
    -no-webkit \
    `# Configuration options` \
    -graphicssystem raster \
    -optimized-qmake \
    -reduce-relocations \
    -system-sqlite \
    `# Build options` \
    -dbus-linked \
    -no-rpath \
    -nomake demos \
    -nomake docs \
    -nomake examples \
    -openssl-linked \
    -verbose

  make
}

package() {
  cd "${srcdir}/${_pkgfqn}"
  make INSTALL_ROOT="${pkgdir}" install

  # install missing icons and desktop files
  install -D -m644 src/gui/dialogs/images/qtlogo-64.png \
    "${pkgdir}/usr/share/icons/hicolor/64x64/apps/qt4logo.png"
  install -Dm644 "${srcdir}"/qtconfig.desktop \
    "${pkgdir}/usr/share/applications/qtconfig4.desktop"

  # install the profile
  install -D -m755 "${srcdir}"/qt4.profile "${pkgdir}"/etc/profile.d/qt4.sh

  # Useful symlinks for cmake and configure scripts
  install -d "${pkgdir}"/usr/bin
  for b in "${pkgdir}"/usr/lib/qt4/bin/*; do
    ln -s /usr/lib/qt4/bin/$(basename $b) "${pkgdir}"/usr/bin/$(basename $b)-qt4
  done

  # install license addition
  install -D -m644 LGPL_EXCEPTION.txt \
    ${pkgdir}/usr/share/licenses/${pkgname}/LGPL_EXCEPTION.txt

  # Fix wrong libs path in pkgconfig files
  find "${pkgdir}/usr/lib/pkgconfig" -type f -name '*.pc' \
    -exec perl -pi -e "s, -L${srcdir}/?\S+,,g" {} \;

  # Fix wrong bins path in pkgconfig files
  find "${pkgdir}/usr/lib/pkgconfig" -type f -name '*.pc' \
    -exec sed -i 's|/usr/bin/|/usr/lib/qt4/bin/|g' {} \;

  # Fix wrong path in prl files
  find "${pkgdir}/usr/lib" -type f -name '*.prl' \
    -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;

  # The TGA plugin is broken (FS#33568)
  rm "${pkgdir}"/usr/lib/qt4/plugins/imageformats/libqtga.so
}

# vim:set ts=2 sw=2 et:
-----------------------------------------------------------------------------------------------------------------------
libdbusmenu
-------------------------------------------------------------------
# Maintainer: Xiao-Long Chen
# Original Maintainer: György Balló <ballogy@freestart.hu>
# Contributor: thn81 <root@scrat>

pkgbase=libdbusmenu
pkgname=('libdbusmenu' 'libdbusmenu-gtk2' 'libdbusmenu-gtk3')
pkgver=12.10.3daily13.02.01
pkgrel=104
pkgdesc="A small little library that was created by pulling out some comon code out of indicator-applet"
arch=('i686' 'x86_64')
url="https://launchpad.net/dbusmenu"
license=('LGPL')
makedepends=('json-glib' 'gtk2-ubuntu' 'gtk3-ubuntu' 'intltool' 'gnome-doc-utils' 'gtk-doc' 'gobject-introspection' 'vala' 'python2' 'valgrind')
checkdepends=('dbus-test-runner' 'xorg-server-xvfb')
groups=('unity')
options=('!libtool')
source=("https://launchpad.net/ubuntu/+archive/primary/+files/libdbusmenu_${pkgver}.orig.tar.gz"
        '0001_autoconf.patch'
        'revert_r438.patch')
sha512sums=('24b08578dd66b84fd0cad4d081bf1883ba9c77e69919d68da4e31ea1ab71166dc1b263081c88d606bc66748c90b5c90b2e0edb678842dd021e95bbad1cd831bb'
            '233865822a6280dbd536db131511648bdf40af042ae8afa1ed813cd2538c4e9f5f1ada8868de27bf60f1bed8830ace9916c097ba3d8d698744a2fac95a6dbabf'
            '7a009a23bd3be21939336d5cd9281ead892366d3d0436ec8104e86c88be797dd53f4344018f6286626df08bf93853c11cd333bf8736522051851e920068d17f5')

prepare() {
  cd "${srcdir}/${pkgbase}-${pkgver}"

  patch -p1 -i "${srcdir}/0001_autoconf.patch"
  patch -p0 -i "${srcdir}/revert_r438.patch"
}

build() {
  cd "${srcdir}/${pkgbase}-${pkgver}"

  export CFLAGS="${CFLAGS} -Wno-error"

  gtkdocize
  autoreconf -vfi
  intltoolize -f

  # Python2 fix
  sed -i "s|^\(#!.*python\)$|\12|" tools/dbusmenu-bench

  #" # Stupid vim highlighting

  # libdbusmenu-gtk2 won't install if libdbusmenu-glib is missing
  sed -i 's|$(DBUSMENUGTK_CFLAGS)|$(DBUSMENUGTK_CFLAGS) -L../libdbusmenu-glib/.libs|' libdbusmenu-gtk/Makefile.{am,in}

  [[ -d build-gtk2 ]] || mkdir build-gtk2
  pushd build-gtk2
  ../configure --prefix=/usr --libexecdir=/usr/lib/${pkgbase} --disable-scrollkeeper --with-gtk=2 --disable-static
  export MAKEFLAGS="-j1"
  make
  popd

  [[ -d build-gtk3 ]] || mkdir build-gtk3
  pushd build-gtk3
  ../configure --prefix=/usr --libexecdir=/usr/lib/${pkgbase} --disable-scrollkeeper --with-gtk=3 --disable-static
  make
  popd
}

check() {
  cd "${srcdir}/${pkgbase}-${pkgver}/build-gtk3"

  make check
}

# I've modified thn81's PKGBUILD so that the directory structure of the packages
#   are identical to Ubuntu's. It should have better compatibility will other
#   packages that depend on libdbusmenu.

package_libdbusmenu() {
  depends=('json-glib' 'gtk2-ubuntu')

  cd "${srcdir}/${pkgbase}-${pkgver}/build-gtk3"

  export MAKEFLAGS="-j1"
  make -C libdbusmenu-glib DESTDIR="${pkgdir}/" install
  make -C tools DESTDIR="${pkgdir}/" install
  make -C tests DESTDIR="${pkgdir}/" install
  make -C docs/libdbusmenu-glib DESTDIR="${pkgdir}/" install
  make -C po DESTDIR="${pkgdir}/" install
}

package_libdbusmenu-gtk2() {
  pkgdesc+=" (GTK+ 2 library)"
  depends=('gtk2-ubuntu' "libdbusmenu=${pkgver}")

  cd "${srcdir}/${pkgbase}-${pkgver}/build-gtk2"

  export MAKEFLAGS="-j1"
  make -C libdbusmenu-gtk DESTDIR="${pkgdir}/" install
  make -C docs/libdbusmenu-gtk DESTDIR="${pkgdir}/" install
}

package_libdbusmenu-gtk3(){
  pkgdesc+=" (GTK+ 3 library)"
  depends=('gtk3-ubuntu' "libdbusmenu=${pkgver}")

  cd "${srcdir}/${pkgbase}-${pkgver}/build-gtk3"

  export MAKEFLAGS="-j1"
  make -C libdbusmenu-gtk DESTDIR="${pkgdir}/" install
}

# vim:set ts=2 sw=2 et:
----------------------------------------------------------------------------------
libindicator
-----------------------------------------------------------------------------------
same PKGBUILD as master branch
--------------------------------------------------------------------------
libindicate
-----------------------------------------------------------------------------------
same PKGBUILD as master branch
--------------------------------------------------------------------------
libindicate-qt
-----------------------------------------------------------------------------------
same PKGBUILD as master branch
--------------------------------------------------------------------------
libappindicator
-----------------------------------------------------------------------------------
same PKGBUILD as master branch
--------------------------------------------------------------------------
appmenu-gtk
-----------------------------------------------------------------------------------
same PKGBUILD as master branch
--------------------------------------------------------------------------
libgee1
-----------------------------------------------------------------------------------
same PKGBUILD as GNOME3.8 branch
--------------------------------------------------------------------------
vala0.18
-----------------------------------------------------------------------------------
same PKGBUILD as GNOME3.8 branch
--------------------------------------------------------------------------
libunity
------------------------------------------------
# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
# Original Maintainer: György Balló <ballogy@freestart.hu>
# Contributor: thn81 <root@scrat>

pkgname=libunity
_actual_ver=6.90.2
_extra_ver=daily13.04.05
_ubuntu_rel=0ubuntu1
pkgver=${_actual_ver}${_extra_ver}
pkgrel=102
pkgdesc="A library for instrumenting and integrating with all aspects of the Unity shell"
arch=('i686' 'x86_64')
url="https://launchpad.net/libunity"
license=('LGPL')
depends=('libgee1' 'dee' 'libdbusmenu' 'gtk3')
makedepends=('intltool' 'vala' 'python2' 'gobject-introspection')
checkdepends=('python2-gobject' 'xorg-server-xvfb' 'xorg-xauth')
groups=('unity')
options=('!libtool')
source=("https://launchpad.net/ubuntu/+archive/primary/+files/libunity_${_actual_ver}${_extra_ver}.orig.tar.gz"
        "https://launchpad.net/ubuntu/+archive/p … l}.diff.gz"
        '0001_autoconf.patch')
sha512sums=('b992f534430579938d866347d2e00b88c1e2854eb93d101c871b57d698cc1d428af9510ceee720388a838d86e856fbd87f0f2b9d911331820d90e7dd4b030374'
            '32143ee07cdcc12e5311de5242decfc041d93c829883dd73f49b2a63b288013591eef934cf14f692f2416e91618602829dbb0594db369e55dbb802e68f84f07d'
            '1570c01f4c8ac53bc7806fad78691844a12625b7142270b5a215d203618acc76ba258c4aa969a120186ba9224b726f20a2a9efad05940ffdaa258be49844fa4b')

prepare() {
  cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"

  find -type f -name '*.py' -exec sed -i 's|^\(#!.*python$\)|\12|g' {} \+

  patch -p1 -i "${srcdir}/0001_autoconf.patch"

  # Apply Ubuntu patches
  patch -p1 -i "${srcdir}/${pkgname}_${_actual_ver}${_extra_ver}-${_ubuntu_rel}.diff"

  for i in $(cat 'debian/patches/series' | grep -v '#'); do
    patch -p1 -i "debian/patches/${i}"
  done
}

build() {
  cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"

  #export VALAC=valac-0.18
  mkdir bin/
  ln -s /usr/bin/valac-0.18 ./bin/valac
  export PATH="$(pwd)/bin:${PATH}"

  intltoolize -f
  autoreconf -vfi
  ./configure --prefix=/usr --disable-static --enable-headless-tests PYTHON=python2
  export MAKEFLAGS="-j1"
  make

}

check() {
  cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"

  #export XDG_DATA_DIRS="$(pwd)/test/data:${XDG_DATA_DIRS}"

  # test-appinfo-manager is failing: something really bad is probably going to
  # happen
  sed -i -e '/\/Unit\/AppInfoManager\/SyncLookupOk/d' \
         -e '/AppInfoManagerSuite\.test_sync_lookup_ok/d' \
         -e '/\/Unit\/AppInfoManager\/AsyncLookupOk/d' \
         -e '/AppInfoManagerSuite\.test_async_lookup_ok/d' \
         test/vala/test-appinfo-manager.vala

  make check
}

package() {
  cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"

  make DESTDIR="${pkgdir}/" install
}

# vim:set ts=2 sw=2 et:
---------------------------------------------------------
libunity-misc
------------------------------------------------------------
# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
# Original Maintainer: György Balló <ballogy@freestart.hu>
# Contributor: thn81 <root@scrat>

pkgname=libunity-misc
_actual_ver=4.0.5
_extra_ver=daily13.02.26
pkgver=${_actual_ver}${_extra_ver}
pkgrel=103
pkgdesc="Misc. differently licensed stuff for Unity"
arch=('i686' 'x86_64')
url="https://launchpad.net/libunity-misc"
license=('LGPL')
depends=('gtk3')
makedepends=('gtk-doc')
groups=('unity')
options=(!libtool)
source=("https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${_actual_ver}${_extra_ver}.orig.tar.gz"
        '0001_autotools.patch')
sha512sums=('37d3a65c5f91e06cc3a601ee223c86a3aa631d48ca2d6f32816bedff48ad4a3714cb008f836a5fe27c8eab7407cfe1acf4c151139c1e429fd93413388c55daa2'
            'f1f7059f9eb90836383a3742cb4ff701cf1187209a6e7afc23b5efe9a70f20084d4a4d8d499469de79ed0679ead1d9ff45c7b5fc8207a3ba30e624eeadd3be86')

prepare() {
  cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"

  patch -p1 -i "${srcdir}/0001_autotools.patch"
}

build() {
  cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"

  export CFLAGS="${CFLAGS} -Wno-error"

  gtkdocize
  autoreconf -vfi
  ./configure --prefix=/usr --disable-static
  make
}

package() {
  cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"

  make DESTDIR="${pkgdir}/" install
}

# vim:set ts=2 sw=2 et:
-----------------------------------------------------------------
indicator-messages
-------------------------------------------------------------------
same PKGBUILD as master branch
--------------------------------------------------------------------------
libunity-webapps
-----------------------------------------------------------------------
# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>

pkgname=libunity-webapps
_actual_ver=2.5.0
_extra_ver=~daily13.03.18
_translations=20130418
pkgver=${_actual_ver}${_extra_ver/\~/.}
pkgrel=102
pkgdesc="WebApps: Library for the integration with the Unity desktop"
arch=('i686' 'x86_64')
url="https://launchpad.net/libunity-webapps"
license=('LGPL')
groups=('unity')
depends=('geoclue' 'glib2' 'hicolor-icon-theme' 'indicator-messages' 'json-glib' 'libdbusmenu-gtk3' 'libnotify' 'libsoup' 'libunity' 'libwnck3' 'packagekit' 'polkit' 'sqlite' 'telepathy-glib')
makedepends=('gobject-introspection' 'gtk-doc' 'intltool')
checkdepends=('dbus-test-runner' 'xorg-server-xvfb')
options=('!libtool')
install=libunity-webapps.install
source=("https://launchpad.net/ubuntu/+archive/primary/+files/libunity-webapps_${_actual_ver}${_extra_ver}.orig.tar.gz"
        "https://dl.dropboxusercontent.com/u/486 … pps.tar.gz")
sha512sums=('2d0c75339c70d5ce238f65453eec994e25b272688894dfacef7be310b86d4f3ff4a5bc13371a0b2618c81b5e37060b93755ce3ab15ee1766375677d49499ed8d'
            '9cac4fc4333dd55ad0cad6a89686e4c240abbd9b41806583272826bfcaec53f4f51faf741c8bb532cf3decc850f38e56f4241e4349d662b1f7bfe9c937869285')

prepare() {
  cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"

  msg "Merging translations from ${_translations}"
  rm -f po/LINGUAS po/*.pot
  mv "${srcdir}"/po/*.pot po/
  for i in "${srcdir}"/po/*.po "${srcdir}"/unity_webapps/*.po; do
    FILE=$(sed -n "s|.*/unity_webapps-||p" <<< ${i})
    mv ${i} po/${FILE}
    echo ${FILE%.*} >> po/LINGUAS
  done
}

build() {
  cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"

  autoreconf -vfi
  intltoolize -f

  ./configure --prefix=/usr --libexecdir=/usr/lib/libunity-webapps --disable-static
  make
}

check() {
  cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"

  make check
}

package() {
  cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"
  make DESTDIR="${pkgdir}/" install
}

# vim:set ts=2 sw=2 et:
-----------------------------------------------------------------
bamf
sni-qt
ido
----------------------------------------------------------------
same PKGBUILD as master branch
--------------------------------------------------------------------------
gsettings-desktop-schemas-ubuntu
-------------------------------------------------------------------
# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
# Original Maintainer: Ionut Biru <ibiru@archlinux.org>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Adam Hani Schakaki (krzd) <krzd@krzd.net>

pkgname=gsettings-desktop-schemas-ubuntu
_ppa_ver=3.8.0
_ppa_rel=0ubuntu1~raring1
pkgver=3.8.0
pkgrel=100
pkgdesc="Shared GSettings schemas for the desktop"
arch=('any')
url="http://live.gnome.org/"
license=('GPL')
depends=('glib2')
makedepends=('intltool' 'gobject-introspection')
provides=("${pkgname%-*}=${pkgver}")
conflicts=("${pkgname%-*}")
install=${pkgname%-*}.install
source=("http://ftp.gnome.org/pub/gnome/sources/${pkgname%-*}/${pkgver%.*}/${pkgname%-*}-${pkgver}.tar.xz"
        "http://ppa.launchpad.net/gnome3-team/gn … ian.tar.gz")
sha512sums=('a05d2c105418f6bdc84ed11594ba38f9057c8307999122a6adb04b4499e450ae3443c3777d8b2dc58fb08021f5488dd0cf4fdf541e7940808d2212f72cfb510c'
            '2dee1ed0addbe1beb5e87f2713005433eaefa7f7819bbb7bd3327997c0bd6c179f7d9b4373d732c7c311e736d5b0fcf63eefe5411c46ce638a807e70ca31a4d3')

build() {
  cd "${srcdir}/${pkgname%-*}-${pkgver}"

  # Apply Ubuntu's patches
  for i in $(grep -v '#' "${srcdir}/debian/patches/series"); do
    patch -p1 -i "${srcdir}/debian/patches/${i}"
  done

  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
    --disable-schemas-compile
  make
}

package() {
  cd "${srcdir}/${pkgname%-*}-${pkgver}"

  make DESTDIR="${pkgdir}" install
}
---------------------------------------------------------------------------
gnome-settings-daemon-ubuntu
------------------------------------------------------------------------------
# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
# Original Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: thn81 <root@scrat>

pkgname=gnome-settings-daemon-ubuntu
_actual_ver=3.8.1
_ubuntu_rel=3.7.91-0ubuntu1~raring3
_translations=20130418
pkgver=3.8.1
pkgrel=102
pkgdesc="The GNOME Settings daemon with Ubuntu's patches"
arch=('i686' 'x86_64')
url="http://www.gnome.org"
license=('GPL')
depends=('dconf' 'gnome-desktop' 'gsettings-desktop-schemas' 'hicolor-icon-theme' 'libcanberra-pulse' 'libnotify' 'libsystemd' 'libwacom' 'nss' 'pulseaudio' 'pulseaudio-alsa' 'upower' 'ibus' 'libappindicator3')
makedepends=('intltool' 'xf86-input-wacom' 'libxslt' 'docbook-xsl')
groups=('unity')
provides=("gnome-settings-daemon=${_actual_ver}")
conflicts=('gnome-settings-daemon')
options=('!emptydirs' '!libtool')
install=gnome-settings-daemon.install
source=("http://ftp.gnome.org/pub/gnome/sources/${pkgname%-*}/${_actual_ver%.*}/${pkgname%-*}-${_actual_ver}.tar.xz"
        "https://launchpad.net/~gnome3-team/+arc … ian.tar.gz"
        "https://dl.dropboxusercontent.com/u/486 … mon.tar.gz")
sha512sums=('8e7886438cf770f6b2861c6d3fcbe6a8524c4d2ed1cb0e55b6c0c58651106f82fa8e3d1c40118e43e1a6fb817f29b4c4a7fe9373a9b7a1b2c04a66ed87758ef2'
            '2c6b2f76d461b2d4f72f9dc82761199119cc4e2e41ed82dfe8485cedca55e00b1165d4072eaa6ec4b6cea49b9637d85bec842481d5689542bb3be316bea4f77c'
            '8282c8c9233b3dd2199ae3bcedd910ff68a69896ae295300fb59c3d03119ac5e889a2088c2021c2fc2afd452d167b3ee22c92ad9c6375a1588f1f8dff6b172ff')

prepare() {
  cd "${srcdir}/${pkgname%-*}-${_actual_ver}"

  # Apply Ubuntu's patches
    # Disable patches
      # Ubuntu specific
        sed -i '/43_disable_locale_settings.patch/d' "${srcdir}/debian/patches/series"
      # systemd should make this obsolete
        sed -i '/revert_git_datetime_dropping.patch/d' "${srcdir}/debian/patches/series"
      # Fails to apply. Disable for now
        sed -i '/16_use_synchronous_notifications.patch/d' "${srcdir}/debian/patches/series"

  for i in $(grep -v '#' "${srcdir}/debian/patches/series"); do
    msg "Applying patch ${i} ..."
    patch -p1 -i "${srcdir}/debian/patches/${i}"
  done

  msg "Merging translations from ${_translations}"
  rm -f po/LINGUAS po/*.pot
  mv "${srcdir}"/po/*.pot po/
  for i in "${srcdir}"/po/*.po; do
    FILE=$(sed -n "s|.*/${pkgname%-*}-||p" <<< ${i})
    mv ${i} po/${FILE}
    echo ${FILE%.*} >> po/LINGUAS
  done
}

build() {
  cd "${srcdir}/${pkgname%-*}-${_actual_ver}"

  autoreconf -vfi

  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --libexecdir=/usr/lib/${pkgname%-*} \
    --disable-static \
    --enable-systemd
     
  # https://bugzilla.gnome.org/show_bug.cgi?id=656231
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

  make
}

package() {
  cd "${srcdir}/${pkgname%-*}-${_actual_ver}"
  make DESTDIR="${pkgdir}" install

  # Plugins that aren't installed still have schema references
  # and cause gsettings errors - remove the references we're not using
  sed -i '/org\.gnome\.settings-daemon\.plugins\.updates/d' \
    "$pkgdir/usr/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.gschema.xml"
}

# vim:set ts=2 sw=2 et:
------------------------------------------------------------------------------

Everything compiles under gnome 3.8 and gnome 3.8 works after installing the packages

Hoping to have helped

Gianluca

Offline

#1925 2013-04-22 21:42:41

oi_wtf
Member
From: /home/wtf
Registered: 2012-03-11
Posts: 191

Re: Progress on Unity under Arch Linux!

please use some kind of pasting tool or at least code-tags,
see rules: https://bbs.archlinux.org/viewtopic.php?id=130309 and etiquette: https://wiki.archlinux.org/index.php/Fo … s_and_Code

Last edited by oi_wtf (2013-04-22 21:50:42)


Laptop:   Arch Linux (x86_64) and Win10 (x86_64);  Intel Core i7-3630QM @ 2.40GHz, 8 GiB RAM, NViDiA GeForce GT 650M w/ 2 GiB
Desktop: Arch Linux (x86_64) and Win10 (x86_64);  Intel Core i7-4771  @ 3.50GHz, 32 GiB RAM, AMD Radeon RX 480 w/ 8 GiB

Offline

Board footer

Powered by FluxBB