summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d8f52325e81ff13e8d005f538f68f8bc27cfd0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Mattheus Roxas <thepogsupreme@tuta.io>
_pkgname="amogu.sh" # Thanks,
pkgname="$_pkgname-git" # Dawid.
pkgver=r3.fad5425
pkgrel=1
pkgdesc="A posix shell image viewer utilizing fzf, with Ɯberzug for previews. Copies your selection to the clipboard."
arch=('x86_64')
url="https://codeberg.org/thepogsupreme/amogu.sh"
license=('EUPL 1.2')
depends=('fzf' 'ueberzug')
makedepends=('git')
optdepends=('xclip: Clipboard support' 'dragon-drag-and-drop: Drag and drop support')
source=('amogu.sh::git+https://codeberg.org/thepogsupreme/amogu.sh.git')
md5sums=('SKIP')

pkgver() {
	cd "$_pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$_pkgname"
	install -Dm755 ./amogu.sh "$pkgdir/usr/bin/amogu.sh"
	install -g 0 -o 0 -m 0644 "$_pkgname".1 /usr/local/man/man1/
	gzip /usr/local/man/man1/"$_pkgname".1
	install -Dm644 ./README.md "$pkgdir/usr/share/doc/$pkgname"
}