# Maintainer: Valeria Fadeeva pkgname=('melawy-icon-theme' 'melawy-cursors') pkgbase=melawy-icon-theme pkgver=2023.03.28.r12.g87923b3 pkgrel=1 arch=('any') license=('AGPL3') makedepends=('git') options=('!strip') source=('file:///disk/themes/_ICONS/Melawy-icon-theme.tar.gz') sha256sums=('SKIP') pkgver() { cd "$srcdir/Melawy-icon-theme" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd "$srcdir/Melawy-icon-theme" # Disable running gtk-update-icon-cache sed -i '/gtk-update-icon-cache/d' install.sh } package_melawy-icon-theme() { pkgdesc="Modern and clean icon theme for Linux" url="https://github.com/Melawy" depends=('gtk-update-icon-cache' 'hicolor-icon-theme') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") cd "$srcdir/Melawy-icon-theme" install -d "$pkgdir/usr/share/icons" ./install.sh -t all -d "$pkgdir/usr/share/icons" } package_melawy-cursors() { pkgdesc="An x-cursor theme inspired by Colloid theme and based on capitaine-cursors" url="https://github.com/Melawy" provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") cd "$srcdir/Melawy-icon-theme/cursors" install -d "$pkgdir"/usr/share/icons/Melawy{-cursors,-dark-cursors} cp -r dist/* "$pkgdir/usr/share/icons/Melawy-cursors/" cp -r dist-dark/* "$pkgdir/usr/share/icons/Melawy-dark-cursors/" }