blob: 6b4a6cfb1776661fa3618d19a138e6b6f71f2974 (
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
34
|
# Maintainer: Dave Simons <pkgs@simonsd.org>
pkgname=dynamic-colors-git
pkgver=47a91bb
pkgrel=1
pkgdesc="Change terminal colors on the fly"
arch=('any')
url="https://github.com/sos4nt/dynamic-colors"
makedepends=('git')
provides=('dynamic-colors')
source=('git+https://github.com/sos4nt/dynamic-colors.git')
md5sums=('SKIP')
license=('MIT')
pkgver() {
cd "$srcdir/dynamic-colors"
git rev-parse --short HEAD
}
build() {
cd "$srcdir/dynamic-colors"
sed -i 's_\${HOME}/.dynamic-colors_/usr/share/dynamic-colors_' bin/dynamic-colors
sed -i 's@\${DYNAMIC_COLORS_ROOT}/\(colorscheme\"\)@${HOME}/.\1@g' bin/dynamic-colors
rm .git* -rf
}
package() {
cd "$srcdir/dynamic-colors"
install -dm755 "$pkgdir/usr/bin" "$pkgdir/usr/share/dynamic-colors/colorschemes" "$pkgdir/usr/share/bash-completion/completions" "$pkgdir/usr/share/zsh/site-functions"
install -m755 "bin/dynamic-colors" "$pkgdir/usr/bin/dynamic-colors"
install -m755 "completions/dynamic-colors.bash" "$pkgdir/usr/share/bash-completion/completions/dynamic-colors"
install -m755 "completions/dynamic-colors.zsh" "$pkgdir/usr/share/zsh/site-functions/_dynamic-colors"
cp -r "colorschemes/" "$pkgdir/usr/share/dynamic-colors/"
}
|