Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit b565f92

Browse files
sometimes, you just gotta fork it
0 parents  commit b565f92

File tree

8 files changed

+634
-0
lines changed

8 files changed

+634
-0
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pkg/
2+
src/
3+
*.tar.gz
4+
*.tar.zst
5+
*.zip

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [1.0.0] - 2021-10-22
8+
### Source of program
9+
- changed yay parts of the fuzzy yogurt script into paru
10+
and using standardized CHANGELOG.
11+
### Added
12+
- PKGBUILD
13+
- Makefile for pkg release workflow and direct download install

Makefile

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
PKG_NAME := yups
2+
AUR_PATH := ~/kode/aur_packages
3+
VERSION := $(shell cat VERSION)
4+
ARCHIVE := $(PKG_NAME)-$(VERSION).tar.gz
5+
.PHONY: all install release version_sync
6+
7+
define archive_ok
8+
@echo "Archive ok?"; \
9+
read HVAD;
10+
endef
11+
12+
define pkgbuild_ok
13+
@echo "PKGBUILD ok?"; \
14+
read HVAD;
15+
endef
16+
17+
define check_aur_push
18+
@echo "Push to ssh://[email protected]/$(PKG_NAME).git?"; \
19+
read HVAD;
20+
endef
21+
22+
version_sync:
23+
sed -i -e "s/^version=.*/version=$(VERSION)/" yups
24+
sed -i -e "s/^version=.*/version=$(VERSION)/" yups-query
25+
sed -i -e "s/^Latest Release .*/Latest Release $(VERSION)/" README.md
26+
sed -i -e "s/^pkgver=.*/pkgver=$(VERSION)/" PKGBUILD
27+
28+
clean:
29+
rm -rf src/
30+
rm -rf pkg/
31+
32+
release: clean version_sync
33+
git commit -am 'Release $(VERSION)'
34+
git tag $(VERSION)
35+
git archive --format=tar.gz -o $(ARCHIVE) --prefix yups-$(VERSION)/ HEAD
36+
git push origin $(VERSION)
37+
git archive --format=zip -o $(PKG_NAME)-$(VERSION).zip --prefix yups-$(VERSION)/ HEAD
38+
sed -i -e "s/^sha256sums=.*/sha256sums=('`sha256sum $(ARCHIVE) | cut -d' ' -f1`')/" PKGBUILD
39+
makepkg
40+
namcap PKGBUILD
41+
$(call pkgbuild_ok)
42+
git commit -am 'Update PKGBUILD'
43+
git push origin main
44+
cp PKGBUILD $(AUR_PATH)/$(PKG_NAME)/PKGBUILD
45+
updpkgsums
46+
makepkg --printsrcinfo > .SRCINFO
47+
mv .SRCINFO $(AUR_PATH)/$(PKG_NAME)/.SRCINFO
48+
cd $(AUR_PATH)/$(PKG_NAME) && makepkg -ci && git commit -am 'Release $(VERSION)' && namcap $(ARCHIVE)
49+
$(call archive_ok)
50+
$(call check_aur_push)
51+
# git push origin master
52+
53+
install:
54+
install -m755 yups /usr/local/bin/
55+
install -m755 yups-query /usr/local/bin/
56+

PKGBUILD

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Maintainer: Niklas Adam <[email protected]>
2+
pkgname=yups
3+
pkgver=1.0.0
4+
pkgrel=1
5+
pkgdesc="A fzf TUI for paru"
6+
arch=("any")
7+
url="https://github.com/the-Electric-Tantra-Linux/yups"
8+
license=("GPL3")
9+
depends=("fzf" "paru" "bash" )
10+
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
11+
sha256sums=('d7f547406531eb8429796fea7db26df816f751e2dbfaa23de334fe66399dd803')
12+
13+
package() {
14+
install -Dm775 "$srcdir/$pkgname-$pkgver/yups" "$pkgdir/usr/bin/yups"
15+
install -Dm775 "$srcdir/$pkgname-$pkgver/yups-query" "$pkgdir/usr/bin/yups-query"
16+
}

README.md

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# [yups](https://github.com/the-Electric-Tantra-Linux/yups)
2+
3+
A [fzf](https://github.com/junegunn/fzf) TUI for [paru](https://github.com/Morganamilo/paru)
4+
5+
Latest Release 1.0.0
6+
7+
# Usage
8+
9+
```text
10+
❯ ./yups -h
11+
12+
╔════════════════════╗
13+
║░ yups ░║
14+
╚════════════════════╝
15+
16+
usage: yups -sqrmfy {args} -hv
17+
path: /usr/bin/yups
18+
19+
-s, -style select [(l|light)|(m|mono)(p|paper)]
20+
-q, -query input starting search query
21+
-r, -repository browse a specific repo [core|extra|community|aur]
22+
-m, -margin set the margin 10|2,5|5,3,8|1,5,2,3
23+
-h, -help show this help
24+
-v, -version get yups version
25+
26+
ctrl-space toggle package
27+
ctrl-d deselect-all
28+
ctrl-l clear-query
29+
ctrl-p toggle-preview
30+
ctrl-w toggle-preview-wrap
31+
shift-up preview-up
32+
shift-down preview-down
33+
shift-left preview-page-up
34+
shift-right preview-page-down
35+
ctrl-s see package stats
36+
ctrl-u list updatable packages
37+
ctrl-n read the news
38+
ctrl-g get info about installed packages
39+
enter install package(s)
40+
esc leave, do nothing
41+
tab toggle package and move pointer down
42+
shift-tab toggle package and move pointer up
43+
ctrl-h list keybindings (help)
44+
```
45+
46+
# Requirements
47+
48+
- [fzf](https://github.com/junegunn/fzf)
49+
- [paru](https://github.com/morganamilo/paru)
50+
- bash
51+
52+
# Installation
53+
54+
## Arch Linux
55+
56+
```
57+
paru -S yups
58+
```
59+
60+
## From Source
61+
62+
```sh
63+
git clone https://github.com/the-Electric-Tantra-Linux/yups.git
64+
cd yups
65+
sudo make install
66+
```
67+
68+
## Direct Download
69+
70+
```sh
71+
wget -O ~/.local/bin/yups https://raw.githubusercontent.com/the-Electric-Tantra-Linux/yups/main/yups
72+
chmod +x ~/.local/bin/yups
73+
```

VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.0.0

0 commit comments

Comments
 (0)