From 116e83ef81752add3f05b4974083f484f71013e9 Mon Sep 17 00:00:00 2001 From: yakimka Date: Wed, 11 Dec 2019 15:20:05 +0200 Subject: [PATCH] Create PKGBUILD (#2) --- README.md | 6 ++++++ contrib/PKGBUILD | 24 ++++++++++++++++++++++++ contrib/cherrytomato.desktop | 8 ++++++++ setup.py | 5 ++++- 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 contrib/PKGBUILD create mode 100644 contrib/cherrytomato.desktop diff --git a/README.md b/README.md index 667e4ec..7cdc99f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/contrib/PKGBUILD b/contrib/PKGBUILD new file mode 100644 index 0000000..b17f36b --- /dev/null +++ b/contrib/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: yakimka +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" +} diff --git a/contrib/cherrytomato.desktop b/contrib/cherrytomato.desktop new file mode 100644 index 0000000..7494f20 --- /dev/null +++ b/contrib/cherrytomato.desktop @@ -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 diff --git a/setup.py b/setup.py index 1ff9e85..2296d4b 100644 --- a/setup.py +++ b/setup.py @@ -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/*.*'], + })