diff options
Diffstat (limited to 'community/cairo-clock')
-rw-r--r-- | community/cairo-clock/PKGBUILD | 35 | ||||
-rw-r--r-- | community/cairo-clock/cairo-clock.patch | 18 |
2 files changed, 53 insertions, 0 deletions
diff --git a/community/cairo-clock/PKGBUILD b/community/cairo-clock/PKGBUILD new file mode 100644 index 000000000..e646d62e1 --- /dev/null +++ b/community/cairo-clock/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 66650 2012-02-26 21:00:49Z lfleischer $ +# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de> +# Contributor: Kane Wilson <kane_wilson@hotmail.com> + +pkgname=cairo-clock +pkgver=0.3.4 +pkgrel=2 +pkgdesc='An analog clock displaying the system-time.' +arch=('i686' 'x86_64') +url='http://macslow.thepimp.net/?page_id=23' +license=('GPL') +depends=('cairo' 'libglade>=2.6.0' 'librsvg>=2.14.0') +makedepends=('intltool') +source=("http://macslow.thepimp.net/projects/cairo-clock/${pkgname}-${pkgver}.tar.gz" + 'cairo-clock.patch') +md5sums=('78e5b3aa3492aa6c182eaacae63a7c03' + 'a2ec378bf79dfb9a1b1418d7b2d341ff') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + patch -Np0 -i ../cairo-clock.patch + + # quick and dirty build fix, a proper patch was submitted upstream and is + # pending approval + sed -ie 's/-Wl, --export-dynamic/-Wl,--export-dynamic/g' src/Makefile* + + ./configure --prefix=/usr + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make prefix="${pkgdir}/usr" install +} diff --git a/community/cairo-clock/cairo-clock.patch b/community/cairo-clock/cairo-clock.patch new file mode 100644 index 000000000..0f6a9775d --- /dev/null +++ b/community/cairo-clock/cairo-clock.patch @@ -0,0 +1,18 @@ +--- src/cairo-clock.c.orig 2008-02-27 11:02:57.000000000 +0000 ++++ src/cairo-clock.c 2008-06-10 07:51:17.000000000 +0100 +@@ -1487,15 +1487,6 @@ + g_pErrorDialog = glade_xml_get_widget (pGladeXml, + "errorDialog"); + +- if (!gdk_screen_is_composited (gtk_widget_get_screen (g_pMainWindow))) +- { +- gtk_window_set_icon_from_file (GTK_WINDOW (g_pErrorDialog), +- get_icon_filename (), +- NULL); +- gtk_dialog_run (GTK_DIALOG (g_pErrorDialog)); +- exit (2); +- } +- + g_pPopUpMenu = glade_xml_get_widget (pGladeXml, + "popUpMenu"); + pSettingsMenuItem = glade_xml_get_widget (pGladeXml, |