# Contributor: Orson Teodoro <orsonteodoro@hotmail.com>
# Contributor: Jacek Pruciak <alpine@juniorjpdj.pl>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=oh-my-zsh
pkgver=0_git20241018
_commit="4ada1541900539ce585a26642eecc7e8e56d16f6"
pkgrel=0
pkgdesc="Delightful framework for managing zsh configurations including plugins and themes"
url="https://ohmyz.sh/"
arch="noarch"
license="MIT"
depends="
	powerline-extra-symbols
	zsh
	"
install="$pkgname.post-install"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ohmyzsh/ohmyzsh/archive/$_commit.tar.gz
	install-path.patch
	disable-update-check.patch
	"
builddir="$srcdir/ohmyzsh-$_commit"
options="!check" # no tests

prepapre() {
	default_prepare

	# We don't need demo images. They only take space
	find . -name demo.gif -delete
}

package() {
	install -Dvm755 oh-my-zsh.sh -t \
		"$pkgdir"/usr/share/oh-my-zsh/
	cp -vr cache custom lib log plugins templates themes \
		"$pkgdir"/usr/share/oh-my-zsh/

	install -Dvm644 README.md -t \
		"$pkgdir"/usr/share/doc/$pkgname/
	install -Dvm644 LICENSE.txt -t \
		"$pkgdir"/usr/share/doc/$pkgname/
}

sha512sums="
1cef0eaad69893054cf457964081ca47b09db11027ca96cbe1c6fa2bcaba3b0c1135cb76aef1faff9244e64e5af3123b9f92c9f7a16a1ead495f551cd7245f05  oh-my-zsh-0_git20241018.tar.gz
b528955868d9890db68529cfddc703920f7005cfe874d7044955d60fe9754111bf2e9bf6d33996710c6d6d7e3239b3b57e3158ded05a8c5bca646c09d587f11c  install-path.patch
f19b953d03d37328bd0fe172565e9003ab3a7d85779fc62d6335a7cf90f8e5cd71e0085b976b27b07509eaf31c3cab00b716c4b8b9e528e46b5014026b94a5f0  disable-update-check.patch
"
