diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..d161826 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: +_pkgname="zutui" +pkgname="$_pkgname-git" +pkgver=1.0.0 +pkgrel=1 +pkgdesc="TUI for accessing edziekanat of ZUT university" +arch=("any") +url="https://github.com/shv187/zutui" +license=("MIT") +depends=("python" "python-keyring" "python-textual") +makedepends=("git" "python-build" "python-installer" "python-wheel" "python-setuptools") +provides=("zutui") +conflicts=("zutui") +source=("$_pkgname::git+${url}.git") +sha256sums=("SKIP") + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$_pkgname" + python -m build --wheel --no-isolation +} + +package() { + cd "$_pkgname" + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/README.md b/README.md index d06e3fd..67318bd 100644 --- a/README.md +++ b/README.md @@ -10,15 +10,27 @@ Grades Page # Usage -### 1. Download: +## 1. Download: +### On Windows: ``` pip install git+https://github.com/shv187/zutui.git ``` -### 2. Start: +### Arch Linux: +You can use PKGBUILD. Just run: +```bash +makepkg -si +``` +### MacOs and other Linux distros: +Most distros environments are externally managed by the system package manager, so the most straightforward way would be using something like `pipx`. +```bash +pipx install git+https://github.com/shv187/zutui.git +``` + +## 2. Start: ``` zutui ``` -### 3. Enjoy :) +## 3. Enjoy :) # Bindings `j` - Down