1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=fcitx5-material-color
6 pkgdesc="Material color theme for fcitx5"
8 url="https://github.com/hosxy/Fcitx5-Material-Color"
10 source=("https://github.com/hosxy/Fcitx5-Material-Color/archive/$pkgver/$pkgname-$pkgver.tar.gz")
11 sha512sums=('563ce6c910c737fa9b5fa6c4ec47d4483659d24bc6d6926bd9fecb9ac2328138eafa798cba6a3396618ebdd094828e6ecb847bba63d6b02b915ef9ae7d8b145c')
14 cd Fcitx5-Material-Color-$pkgver
15 install -Dm644 arrow.png radio.png -t "$pkgdir"/usr/share/$pkgname/
16 for _variant in black blue brown deepPurple indigo orange pink red sakuraPink teal; do
17 _variant_name=Material-Color-${_variant^}
18 install -dm755 "$pkgdir"/usr/share/fcitx5/themes/$_variant_name/
19 ln -s ../../../$pkgname/arrow.png "$pkgdir"/usr/share/fcitx5/themes/$_variant_name/
20 ln -s ../../../$pkgname/radio.png "$pkgdir"/usr/share/fcitx5/themes/$_variant_name/
21 install -Dm644 theme-$_variant.conf "$pkgdir"/usr/share/fcitx5/themes/$_variant_name/theme.conf
22 sed -i "s/^Name=.*/Name=$_variant_name/" "$pkgdir"/usr/share/fcitx5/themes/$_variant_name/theme.conf