1 # Maintainer: Thanasis Georgiou <sakisds@gmx.com>
5 pkgdesc="A simple ePub reader make using gtk3, python and webkit."
7 url="https://github.com/sakisds/pPub"
9 depends=('python2' 'gtk3' 'gobject-introspection' 'libwebkit3' 'python2-gobject')
12 _gitroot="git://github.com/sakisds/pPub.git"
17 msg "Connecting to GIT server...."
19 if [ -d $_gitname ] ; then
20 cd $_gitname && git pull origin
21 msg "The local files are updated."
23 git clone $_gitroot $_gitname
26 msg "GIT checkout done or server timeout"
28 rm -rf "$srcdir/$_gitname-build"
29 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
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
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