You are not logged in.
Pages: 1
Hi everyone. I need some help about PKGBUILD of awn-extras-applets package.
@csrg said that;
"@m1ck3y: This seems to happen to a lot of packages since the GNOME 3.4 update.
A rather brute-force way to solve it is to add
for file in $(find -name '*.c' -or -name '*.h'); do
sed -i 's|#include <glib/[^>]*>|#include <glib.h>|' $file
done
to the build()-function."
And I don't know how to add these files to PKGBUILD file. Which is;
# Maintainer: György Balló <ballogy@freestart.hu>
# Contributor: Biru Ionut <ionut@archlinux.ro>
# Contributor: Jonathan Liu <net147@hotmail.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=awn-extras-applets
_pkgname=awn-extras
pkgver=0.4.0
pkgrel=13
pkgdesc="A collection of applets for avant-window-navigator"
arch=('i686' 'x86_64')
url="https://launchpad.net/awn-extras"
license=('GPL2')
depends=('avant-window-navigator' 'python-notify' 'vte' 'gnome-menus' 'gnome-menus2' 'libwebkit')
makedepends=('intltool' 'vala')
optdepends=('python2-feedparser: comics, feeds, mail applets'
'python-rsvg: comics, cairo-clock, hardware-sensors applets'
'gstreamer0.10-python: media-player, volume-control applets'
'python2-dateutil: cairo-clock (optional), calendar applets'
'python2-gconf: slickswitcher applet (optional)'
'python-gdata: calendar applet'
'python-vobject: calendar applet'
'python-xklavier: dialect applet'
'python2-pyinotify: thinkhdaps applet (optional)'
'python2-libgnome: stacks applet'
'python-gnomedesktop: stacks applet'
'python-simplejson: feeds applet'
'python-wnck: slickswitcher applet'
'fortune-mod: animal-farm applet'
'net-tools: bandwidth-monitor applet'
'upower: battery applet'
'gnome-applets: cpufreq applet'
'hddtemp: hardware-sensors applet (optional)'
'lm_sensors: hardware-sensors applet'
'banshee: media-control applet'
'tomboy: tomboy applet'
'gnome-screensaver: quit applet (optional)'
'gnome-session: quit applet (optional)')
options=('!libtool')
install=$pkgname.install
source=(http://launchpad.net/$_pkgname/0.4/$pkgver/+download/$_pkgname-$pkgver.tar.gz
awn-extras-libnotify0.7.patch
remove-settings-menu.patch
add-battery-upower-support.patch
fix-shinyswitcher-scrolling.patch
fix-bandwidth-monitor.patch
fix-weather-applet.patch)
md5sums=('b559d68cd6ad295c961c20fcc5d9f9c0'
'2df8dfd8f0f1d458c09b56983c7d049f'
'52f8ce6a4eca862b0740e29a84db8ae5'
'26b56106b63b14ba3c99f1a2e96da05d'
'755c57dfbb65a314f247277918ec95ac'
'8cd946cb8d2884a80a6b5c9ccc4e6830'
'bc22bb3e81aca0f651ae8acee1ce2f00')
build() {
cd "$srcdir/$_pkgname-$pkgver"
patch -Np1 -i "$srcdir/awn-extras-libnotify0.7.patch"
patch -Np1 -i "$srcdir/remove-settings-menu.patch"
patch -Np0 -i "$srcdir/add-battery-upower-support.patch"
patch -Np0 -i "$srcdir/fix-shinyswitcher-scrolling.patch"
patch -Np1 -i "$srcdir/fix-bandwidth-monitor.patch"
patch -Np1 -i "$srcdir/fix-weather-applet.patch"
# Python2 fix
find . -type f -name *.py | xargs sed -i 's@^#.*python$@#!/usr/bin/python2@'
sed -i 's/async(\"python \"/async(\"python2 \"/' applets/maintained/shiny-switcher/shinyswitcherapplet.c
./configure --prefix=/usr --sysconfdir=/etc \
--disable-static \
--disable-pymod-checks \
--with-webkit \
--with-indicator=yes \
PYTHON=/usr/bin/python2
make
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir" install
mkdir -p "$pkgdir/usr/share/gconf/schemas"
gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/awn-extras.schemas" "$pkgdir"/etc/gconf/schemas/*.schemas
rm -r "$pkgdir"/etc
# Remove pandora applet
rm -R "$pkgdir"/usr/share/avant-window-navigator/applets/pandora*
}
Can somebody help me?
PS : Sorry for the long paste I don't know how to put it in other window either
Last edited by thedeli (2012-06-12 07:04:36)
Offline
Please use code tags https://wiki.archlinux.org/index.php/Fo … s_and_Code
There is already a hack in the build function for Python2, use that as a guide...
Offline
Please use code tags https://wiki.archlinux.org/index.php/Fo … s_and_Code
There is already a hack in the build function for Python2, use that as a guide...
Thank you. I used and will use "code" tag from now on. But I don't know anything about programming. And I don't have any clue about what you said in the second sentence but I'm digging in...
Offline
If you look in the build function, you will see that there is already a find/sed call. Try adding the one that you have from the other thread underneath it.
Offline
Pages: 1