upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / fcitx5-material-color / trunk / PKGBUILD
blobb7e1902ddc81fb6c489fe1568c8d600163125a08
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=fcitx5-material-color
4 pkgver=0.2.1
5 pkgrel=1
6 pkgdesc="Material color theme for fcitx5"
7 arch=('any')
8 url="https://github.com/hosxy/Fcitx5-Material-Color"
9 license=('Apache')
10 source=("https://github.com/hosxy/Fcitx5-Material-Color/archive/$pkgver/$pkgname-$pkgver.tar.gz")
11 sha512sums=('563ce6c910c737fa9b5fa6c4ec47d4483659d24bc6d6926bd9fecb9ac2328138eafa798cba6a3396618ebdd094828e6ecb847bba63d6b02b915ef9ae7d8b145c')
13 package() {
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
23   done