Skip to content

Commit

Permalink
Aur package and minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdanbobrowski committed Oct 21, 2022
1 parent 95124dc commit 9deea03
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
10 changes: 10 additions & 0 deletions blog2epub.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Name=blog2epub
GenericName=blog2epub
Comment=Convert blog to epub using command line or GUI
TryExec=blog2epubgui
Exec=blog2epubgui
Icon=
Categories=Kivy;Utility;
Keywords=pdf;crop;rotate;ereader;
7 changes: 7 additions & 0 deletions blog2epubcli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env python3
# -*- coding : utf-8 -*-
# Author: Bohdan Bobrowski

from blog2epub import Blog2EpubCli

Blog2EpubCli.main()
24 changes: 24 additions & 0 deletions packages/aur/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Maintainer: Bohdan Bobrowski <bohdanbobrowski (a) gmail.com>

pkgname=blog2epub
pkgver=1.2.1
pkgrel=1
pkgdesc="Convert blog to epub using command line or GUI."
arch=('any')
url="https://github.com/bohdanbobrowski/blog2epub"
license=('MIT')
depends=('python')
makedepends=('sip')
source=("$pkgname-$pkgver.tar.gz::https://github.com/bohdanbobrowski/blog2epub/archive/v${pkgver}.tar.gz")
sha256sums=('4caf209ed2b313960da175191f01f8602828f7e08ea4382e6db4d8055eb7a2ac')

package() {
cd $pkgname-$pkgver
python setup.py install --root $pkgdir

# Desktop icon
install -Dm644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop

# fix executable
# sed -i "s|krop==0.6.0|krop|g" $pkgdir/usr/bin/krop
}

0 comments on commit 9deea03

Please sign in to comment.