Skip to content

Instantly share code, notes, and snippets.

@PyroDevil
Created June 7, 2013 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PyroDevil/4d0b8f6f8da60b3f5c22 to your computer and use it in GitHub Desktop.
Save PyroDevil/4d0b8f6f8da60b3f5c22 to your computer and use it in GitHub Desktop.
pPub PKGBUILD
# Maintainer: Thanasis Georgiou <sakisds@gmx.com>
# Contributor: PyroDevil <p dot devil at gmail dot com>
pkgname="ppub"
pkgver=1.0
pkgrel=2
pkgdesc="A simple ePub reader make using gtk3, python and webkit."
arch=('any')
license=('GPL')
url="https://github.com/sakisds/pPub"
depends=('python2' 'gtk3' 'gobject-introspection' 'libwebkit3' 'python2-gobject')
makedepends=('git')
optdepends=()
provides=()
conflicts=()
options=()
source=("git://github.com/sakisds/pPub.git#tag=v${pkgver}")
md5sums=('SKIP')
package() {
cd "${srcdir}/pPub"
mkdir -p "${pkgdir}/usr/bin"
install -Dm755 ppub "${pkgdir}/usr/bin/ppub"
#Install .desktop file
install -Dm755 misc/ppub.desktop "${pkgdir}/usr/share/applications/ppub.desktop"
#Install icons
install -Dm755 misc/ppub-24.png "${pkgdir}/usr/share/icons/hicolor/24x24/apps/ppub.png"
install -Dm755 misc/ppub-32.png "${pkgdir}/usr/share/icons/hicolor/32x32/apps/ppub.png"
install -Dm755 misc/ppub-48.png "${pkgdir}/usr/share/icons/hicolor/48x48/apps/ppub.png"
install -Dm755 misc/ppub-64.png "${pkgdir}/usr/share/icons/hicolor/64x64/apps/ppub.png"
install -Dm755 misc/ppub-scalable.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/ppub.svg"
#Install files to /usr/share
mkdir -p "${pkgdir}/usr/share/ppub"
install -Dm755 night.css "${pkgdir}/usr/share/ppub/night.css"
install -Dm755 README.md "${pkgdir}/usr/share/ppub/README"
install -Dm755 COPYING "${pkgdir}/usr/share/ppub/COPYING"
install -Dm755 ppub.py "${pkgdir}/usr/share/ppub/ppub.py"
install -Dm755 dialogs.py "${pkgdir}/usr/share/ppub/dialogs.py"
install -Dm755 xml2obj.py "${pkgdir}/usr/share/ppub/xml2obj.py"
install -Dm755 contentprovider.py "${pkgdir}/usr/share/ppub/contentprovider.py"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment