initial commit take from the AUR mirror
This commit is contained in:
39
gnome15-panel-applet/PKGBUILD
Normal file
39
gnome15-panel-applet/PKGBUILD
Normal file
@@ -0,0 +1,39 @@
|
||||
# Maintainer: Nuno Araujo <nuno.araujo at russo79.com>
|
||||
pkgname=gnome15-panel-applet
|
||||
pkgver=0.0.2
|
||||
pkgrel=1
|
||||
pkgdesc="Panel applet for gnome15"
|
||||
arch=(any)
|
||||
url="http://www.gnome15.org/"
|
||||
license=('GPL')
|
||||
depends=(gnome15 python-gnomeapplet)
|
||||
source=(http://www.gnome15.org/downloads/Gnome15/Desktop/$pkgname-$pkgver.tar.gz
|
||||
python2.patch
|
||||
)
|
||||
md5sums=('626eb957a0f6722a899d37297ec24f91'
|
||||
'5a86cbe7ae05776246f26b77b18aa327')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
|
||||
# python2 fix
|
||||
for file in $(find . -type f -name '*' -print); do
|
||||
sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
|
||||
sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
|
||||
done
|
||||
|
||||
patch -p1 -i ../python2.patch
|
||||
|
||||
export PYTHON_VERSION=2
|
||||
export PYTHON=python2
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
|
||||
make DESTDIR="$pkgdir/" install
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
11
gnome15-panel-applet/python2.patch
Normal file
11
gnome15-panel-applet/python2.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- gnome15-panel-applet-0.0.1_orig/g15-applet 2011-03-12 22:18:30.836666681 +0100
|
||||
+++ gnome15-panel-applet-0.0.1/g15-applet 2011-03-12 22:21:52.263333347 +0100
|
||||
@@ -42,7 +42,7 @@
|
||||
loop = gobject.MainLoop()
|
||||
|
||||
# Allow running from local path
|
||||
-path = os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), "..", "gnome15", "src", "main", "python")
|
||||
+path = os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), "..", "gnome15", "src", "main", "python2")
|
||||
if os.path.exists(path):
|
||||
sys.path.insert(0, path)
|
||||
|
Reference in New Issue
Block a user