summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 385413ff41e80b50471157e9e18be7d25d6b5ff1 (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
# 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 -Dm644 ./README.md "$pkgdir/usr/share/doc/$pkgname"
}