updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / freshwall / PKGBUILD
bloba906f73e4df093fcf5992bbfc1152500972e6782
1 # Maintainer: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
2 # http://github.com/fukawi2/aur-packages
3 pkgname=freshwall
4 pkgver=1.1.2
5 pkgrel=3
6 pkgdesc="Wallpaper rotator for Gnome using files found in ~/.gnome2/backgrounds.xml"
7 arch=(any)
8 url="http://pypi.python.org/pypi/freshwall/"
9 license=('Apache')
10 source=("http://pypi.python.org/packages/source/f/$pkgname/$pkgname-$pkgver.tar.gz")
11 md5sums=('bf8911f94ab37766f64bfd5c1f39cb30')
13 build() {
14   msg "Nothing to compile for $pkgname"
17 package() {
18   cd $srcdir/$pkgname-$pkgver
20   msg "Creating dirs..."
21         mkdir -p $pkgdir/usr/bin/
22         mkdir -p $pkgdir/usr/lib/python2.6/site-packages/$pkgname/
23   
24   msg "Copying files..."
25         cp bin/* $pkgdir/usr/bin/
26         cp lib/$pkgname/* $pkgdir/usr/lib/python2.6/site-packages/$pkgname/
27   
28   msg "Forcing usage of python2"
29   sed -e 's|^#!/usr/bin/env python$|#!/usr/bin/python2|g' \
30     -i $pkgdir/usr/bin/*
32   msg "Setting permissions..."
33         chmod 755 $pkgdir/usr/bin/*
36 # vim:set ts=2 sw=2 et: