summaryrefslogtreecommitdiff
path: root/shellrc/APKBUILD
blob: e38c2953c59460357e0b5cd30fff7111bb6092e3 (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.7.7
pkgrel=2
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="a1ac5989d68c9cd20ee50140de57f3888d0a882b8b24ba50b364acbae97c68513ddc83eabce1774466b3cb9e2928e9d4d8078b59bbe2c23a7abae55f591ac8b1  shellrc-0.7.7.tar.gz
9924b42d35827c273a3db8f76536d80128f3b9e35c3b7876cfd1dd808e2d4f1a58f09806fbbddd2ea3af07f6f94ae03e9a344f4f45b2760bb5e4ab6d8c68af1b  prompt.sh"