summaryrefslogtreecommitdiff
path: root/shellrc/APKBUILD
blob: a3aaadf593e8c95939c48bf7fc5bd97a503b65ee (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
28
29
30
31
32
33
# Contributor: Karel Kočí <cynerd@email.cz>
# Maintainer: Karel Kočí <cynerd@email.cz>
pkgname=shellrc
pkgver=0.8.0
pkgrel=1
pkgdesc="Shell initialization files"
url="https://git.cynerd.cz/shellrc/"
arch="noarch"
license="GPL-3.0+"
subpackages="$pkgname-zsh $pkgname-bash"
source="
	https://git.cynerd.cz/shellrc/snapshot/$pkgname-$pkgver.tar.gz
	prompt.sh
"
options="!check"

package() {
	"$builddir/install" --prefix "$pkgdir"
	install -Dm644 "$srcdir"/prompt.sh "$pkgdir/etc/profile.d/prompt.sh"
}

zsh() {
	depends="$pkgname zsh"
	"$builddir/install" --prefix "$subpkgdir" --zsh --no-base
}

bash() {
	depends="$pkgname bash"
	"$builddir/install" --prefix "$subpkgdir" --bash --no-base
}

sha512sums="b72a4fdc12e5e86dcd31efe932666e244e01f3b898fa7109fc00be27e90af2fc0148aab7e51a2dfcf985ef74f3b19ab83c924fd29c81ee9b32745ebd5cbd815e  shellrc-0.8.0.tar.gz
9924b42d35827c273a3db8f76536d80128f3b9e35c3b7876cfd1dd808e2d4f1a58f09806fbbddd2ea3af07f6f94ae03e9a344f4f45b2760bb5e4ab6d8c68af1b  prompt.sh"