summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Giraudou2015-06-13 15:07:10 +0200
committerBenoît Giraudou2015-06-13 15:07:10 +0200
commit8f506f3b8bea93fc75784fa0d7457fc4ba5a6f83 (patch)
tree460471d16fa95de362ea6cac6a279f600ab3faf7
downloadaur-8f506f3b8bea93fc75784fa0d7457fc4ba5a6f83.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD31
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ec26e2bebf8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = epub-thumbnailer-git
+ pkgdesc = Creates thumbnail for EPUB files.
+ pkgver = 1.0r39.5d6e2ff
+ pkgrel = 1
+ url = https://github.com/marianosimone/epub-thumbnailer
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = python2
+ depends = python2-imaging
+ source = git://github.com/marianosimone/epub-thumbnailer.git
+ md5sums = SKIP
+
+pkgname = epub-thumbnailer-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..740acc9310e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Benoît Giraudou <bgiraudou@gmail.com>
+pkgname=epub-thumbnailer-git
+_gitname=epub-thumbnailer
+pkgver=1.0r39.5d6e2ff
+pkgrel=1
+pkgdesc="Creates thumbnail for EPUB files."
+arch=('any')
+url="https://github.com/marianosimone/epub-thumbnailer"
+license=('GPL3')
+depends=('python2' 'python2-imaging')
+makedepends=('git')
+source=('git://github.com/marianosimone/epub-thumbnailer.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$_gitname"
+ printf "1.0r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$_gitname"
+ sed -i 's|#!/usr/bin/python|#!/usr/bin/env python2|' src/epub-thumbnailer.py
+}
+
+package() {
+ cd "$_gitname"
+ install -dm755 ${pkgdir}/usr/bin/
+ install -m755 src/epub-thumbnailer.py ${pkgdir}/usr/bin/epub-thumbnailer
+ install -dm755 ${pkgdir}/usr/share/thumbnailers/
+ install -m644 src/epub.thumbnailer ${pkgdir}/usr/share/thumbnailers/
+}