updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / ppub / PKGBUILD
blob57908b7588deb513cb3d63d7e3ab5aae8433137e
1 # Maintainer: Thanasis Georgiou <sakisds@gmx.com>
2 pkgname=ppub
3 pkgver=20111107
4 pkgrel=1
5 pkgdesc="A simple ePub reader make using gtk3, python and webkit."
6 arch=('any')
7 url="https://github.com/sakisds/pPub"
8 license=('GPL')
9 depends=('python2' 'gtk3' 'gobject-introspection' 'libwebkit3' 'python2-gobject')
10 makedepends=('git')
12 _gitroot="git://github.com/sakisds/pPub.git"
13 _gitname="pPub"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot $_gitname
24   fi
26   msg "GIT checkout done or server timeout"
28   rm -rf "$srcdir/$_gitname-build"
29   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32 package() {
33   cd "$srcdir/$_gitname-build"
34   #Install binary
35   mkdir -p $pkgdir/usr/bin
36   install -Dm755 ppub.py $pkgdir/usr/bin/ppub
37   #Install .desktop file
38   install -Dm755 misc/ppub.desktop $pkgdir/usr/share/applications/ppub.desktop
39   #Install icons
40   install -Dm755 misc/ppub-24.png $pkgdir/usr/share/icons/hicolor/24x24/apps/ppub.png
41   install -Dm755 misc/ppub-32.png $pkgdir/usr/share/icons/hicolor/32x32/apps/ppub.png
42   install -Dm755 misc/ppub-48.png $pkgdir/usr/share/icons/hicolor/48x48/apps/ppub.png
43   install -Dm755 misc/ppub-64.png $pkgdir/usr/share/icons/hicolor/64x64/apps/ppub.png
44   install -Dm755 misc/ppub-scalable.svg $pkgdir/usr/share/icons/hicolor/scalable/apps/ppub.svg
45   #Install files to /usr/share
46   mkdir -p $pkgdir/usr/share/ppub
47   install -Dm755 night.css $pkgdir/usr/share/ppub/night.css
48   install -Dm755 README $pkgdir/usr/share/ppub/README
49   install -Dm755 COPYING $pkgdir/usr/share/ppub/COPYING