Skip to content

Commit

Permalink
Create PKGBUILD (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
yakimka authored Dec 11, 2019
1 parent bba877f commit 116e83e
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ CherryTomato can be used without installation (by executing `main.py`). However,

`python3 setup.py install`

### Arch Linux

Also you can install CherryTomato from AUR:

`yaourt -S cherrytomato`


## Credits

Expand Down
24 changes: 24 additions & 0 deletions contrib/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Maintainer: yakimka <ss.yakim at gmail dot com>
pkgname=cherrytomato
pkgver=0.2.0
pkgrel=1
pkgdesc="Easy to use, flexible PyQt5 Pomodoro Technique timer"
arch=(any)
url="https://github.com/yakimka/CherryTomato"
license=('GPL')
depends=('python-pyqt5' 'python-qroundprogressbar')
makedepends=('python-setuptools')
source=("https://github.com/yakimka/CherryTomato/archive/$pkgver.tar.gz")
sha512sums=('sha512sum')

package() {
cd "$srcdir/CherryTomato-$pkgver"

python setup.py install --root="$pkgdir/" --optimize=1

mkdir -p "$pkgdir/usr/share/applications"
install --mode=644 --owner=root --group=root "contrib/cherrytomato.desktop" "$pkgdir/usr/share/applications/"

mkdir -p "$pkgdir/usr/share/icons"
install --mode=644 --owner=root --group=root "CherryTomato/media/icon.png" "$pkgdir/usr/share/icons/cherrytomato.png"
}
8 changes: 8 additions & 0 deletions contrib/cherrytomato.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=CherryTomato
GenericName=Easy to use, flexible PyQt5 Pomodoro Technique timer
Icon=cherrytomato
Exec=cherry_tomato
Terminal=false
Categories=Utility
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@
install_requires=['PyQt5', 'qroundprogressbar'],
url='https://github.com/yakimka/CherryTomato',
license='GPL',
entry_points={'gui_scripts': ['cherry_tomato = CherryTomato.main']})
entry_points={'gui_scripts': ['cherry_tomato = CherryTomato.main']},
package_data={
'': ['media/*.*'],
})

0 comments on commit 116e83e

Please sign in to comment.